-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
80 lines (80 loc) · 1.94 KB
/
docker-compose.yaml
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
77
78
79
80
version: '3'
services:
webserver:
container_name: adv_webserver
image: nginx:alpine
restart: on-failure
tty: true
ports:
- "8082:80"
- "443:443"
depends_on:
- app
volumes:
- ./:/var/www
- ./etc/infrastructure/Dockerfiles/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-proxy-network
app:
container_name: adv_app
build: ./etc/infrastructure/Dockerfiles/php
volumes:
- .:/var/www
restart: on-failure
tty: true
ports:
- "8585:8585"
expose:
- "9000"
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
depends_on:
- db
networks:
- app-proxy-network
db:
container_name: adv_postgres
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
networks:
- app-proxy-network
adminer:
container_name: adv_adminer
image: adminer
restart: always
ports:
- "8080:8080"
depends_on:
- db
networks:
- app-proxy-network
composer:
container_name: adv_composer
build: ./etc/infrastructure/Dockerfiles/composer
volumes:
- .:/app
tty: true
restart: on-failure
command: ["composer", "install"]
networks:
- app-proxy-network
rabbit:
container_name: adv_rabbitmq
image: rabbitmq:3-management
restart: always
depends_on:
- app
environment:
RABBITMQ_DEFAULT_USER: user
RABBITMQ_DEFAULT_PASS: password
ports:
- "5672:5672"
- "15672:15672"
networks:
- app-proxy-network
networks:
app-proxy-network:
driver: bridge