-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (71 loc) · 1.75 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: "3.7"
services:
app:
build:
args:
user: pagamento
uid: 1000
context: ./docker-compose/php
dockerfile: Dockerfile
image: pagamento_app
working_dir: /var/www/
ports:
- "9000:9000"
volumes:
- ./:/var/www
- ./docker-compose/php/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker-compose/php/php.ini:/usr/local/etc/php/php.ini
# - ./docker-compose/php/sources.list:/etc/apt/sources.list
networks:
- pagamento-network
depends_on:
- "db_pagamento"
db_pagamento:
build:
context: ./docker-compose/postgres
dockerfile: Dockerfile
image: pagamento_postgres
ports:
- "5430:5432"
environment:
POSTGRES_DB: pagamento
POSTGRES_PASSWORD: pagamento
POSTGRES_USER: postgres
volumes:
- ./docker-compose/postgres:/docker-entrypoint-initdb.d
- ./docker-compose/postgres/db-data:/var/lib/postgresql/data
networks:
- pagamento-network
db_teste:
build:
context: ./docker-compose/db_teste
dockerfile: Dockerfile
image: pagamento_db_teste
#container_name: cajui-db
ports:
- "3432:5432"
#restart: unless-stopped
environment:
POSTGRES_DB: pagamento
POSTGRES_PASSWORD: pagamento
POSTGRES_USER: postgres
volumes:
- ./docker-compose/db_teste:/docker-entrypoint-initdb.d
networks:
- pagamento-network
apache:
build:
context: ./docker-compose/apache
dockerfile: Dockerfile
image: web-pagamento-apache
depends_on:
- app
networks:
- pagamento-network
ports:
- "80:80"
volumes:
- ./:/var/www
networks:
pagamento-network:
driver: bridge