-
Notifications
You must be signed in to change notification settings - Fork 848
/
Copy pathdocker-compose.yml
116 lines (105 loc) · 2.26 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3'
services:
api_automation_test:
build: .
container_name: api_automation_test
working_dir: /api_automation_test
restart: always
volumes:
- .:/api_automation_test
- /home/dev/test_platform/static:/static
- /home/dev/test_platform/templates:/templates
- /home/dev/test_platform/index.html:/index.html
depends_on:
- redis
- rabbitmq
- mysql
command:
- /bin/bash
- -c
- |
uwsgi --ini UwsgiScript/uwsgi.ini
supervisord -c supervisord.conf
while true; do sleep 1; done
expose:
- 8000
- 8001
ports:
- 8000:8000
links:
- mysql
- rabbitmq
- redis
network_mode: bridge
logging:
options:
max-size: "12m"
max-file: "5"
driver: json-file
redis:
image: "redis:alpine"
container_name: auto_redis
restart: always
user: root
expose:
- 6379
network_mode: bridge
logging:
options:
max-size: "12m"
max-file: "5"
driver: json-file
nginx:
build: nginx/.
container_name: auto_nginx
working_dir: /etc/nginx
ports:
- 5555:5555
restart: always
volumes:
- .:/var/lib/test/api_automation_test
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
network_mode: bridge
depends_on:
- api_automation_test
links:
- api_automation_test
logging:
options:
max-size: "12m"
max-file: "5"
driver: json-file
rabbitmq:
image: rabbitmq
container_name: auto_mq
restart: always
user: root
expose:
- 5672
network_mode: bridge
logging:
options:
max-size: "12m"
max-file: "5"
driver: json-file
mysql:
image: mysql:5.7
container_name: auto_mysql
expose:
- 3306
ports:
- 3307:3306
command: --default-authentication-plugin=mysql_native_password
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_ROOT_HOST=%
volumes:
- ./mysql/my.cnf:/etc/my.cnf
- ./mysql:/docker-entrypoint-initdb.d/
- /home/dev/test_platform/datadir:/var/lib/mysql
network_mode: bridge
logging:
options:
max-size: "12m"
max-file: "5"
driver: json-file