-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
52 lines (48 loc) · 1.16 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
version: '3.2'
volumes:
mysql_data:
mysql_data_test:
services:
mysql:
image: public.ecr.aws/dashhudson/mysql:5.7.36
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: public.ecr.aws/dashhudson/mysql:5.7.36
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"
ports:
- "3306:3306"
connections:
image: connections:dev
restart: always
build: .
env_file:
- .local.env
command: >
gunicorn -b 0.0.0.0:5005
--access-logfile -
--reload
connections:app
expose:
- "5005"
ports:
- "5005:5005"
volumes:
- ./:/app
depends_on:
- mysql