forked from dashhudson/connections3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 1.22 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
version: '3.2'
volumes:
mysql_data:
mysql_data_test:
services:
mysql:
image: mysql:5.7.22
environment:
MYSQL_ROOT_PASSWORD: 'very_secure_password'
MYSQL_DATABASE: 'connections_db'
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--sql_mode=']
volumes:
- mysql_data:/var/lib/mysql
expose:
- "3306"
ports:
- "3307:3306"
mysql_test:
image: mysql:5.7.22
environment:
MYSQL_ROOT_PASSWORD: 'very_secure_password'
MYSQL_DATABASE: 'connections_db_test'
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--sql_mode=']
volumes:
- mysql_data_test:/var/lib/mysql
expose:
- "3306"
nginx:
image: nginx:stable-alpine
container_name: nginx_connections
volumes:
- ./nginx/conf.d/:/etc/nginx/conf.d/
ports:
- "5000:80"
depends_on:
- connections
connections:
image: connections:dev
build: .
env_file:
- .local.env
command: >
gunicorn -b 0.0.0.0:5000
--access-logfile -
--reload
connections:app
expose:
- "5000"
volumes:
- ./:/app
depends_on:
- mysql