-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·71 lines (67 loc) · 1.56 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
version: '3.6'
services:
skeleton_api:
container_name: skeleton_api
restart: always
build:
context: .
dockerfile: ./docker/php/Dockerfile
args:
xdebug_remote_host: 172.21.0.1
xdebug_remote_port: 9999
ports:
- 9000:9000
volumes:
- .:/var/www/html
networks:
- skeleton_connection
skeleton_nginx:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
container_name: skeleton_nginx
restart: always
working_dir: /var/www/html
volumes:
- .:/var/www/html
ports:
- 8033:80
depends_on:
- skeleton_api
networks:
- skeleton_connection
skeleton_mysql:
container_name: skeleton_mysql
restart: always
build:
context: .
dockerfile: ./docker/mysql/Dockerfile
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
ports:
- 3308:3306
volumes:
- /var/lib/mysql-docker-skeleton:/var/lib/mysql
networks:
- skeleton_connection
skeleton_rabbitmq:
container_name: skeleton_rabbitmq
restart: always
build:
context: .
dockerfile: ./docker/rabbitmq/Dockerfile
environment:
RABBITMQ_DEFAULT_USER: ${RABBITMQ_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_PASSWORD}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_VHOST}
ports:
- 5675:5672
- 15675:15672
networks:
- skeleton_connection
networks:
skeleton_connection:
driver: bridge