-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
47 lines (45 loc) · 957 Bytes
/
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
version: "3.7"
services:
mysql:
image: mysql:8
command: --default-authentication-plugin=mysql_native_password
restart: always
env_file:
- .env
environment:
- MYSQL_DATABASE=${DATABASE_NAME}
- MYSQL_USER=${DATABASE_USER}
- MYSQL_PASSWORD=${DATABASE_PASSWORD}
- MYSQL_ROOT_PASSWORD=${DATABASE_ROOT_PASSWORD}
- TZ=UTC
volumes:
- mysql_data:/var/lib/mysql
- ./deployment/mysqlconf:/etc/mysql/conf.d
- ./script/fakedata/data:/var/lib/mysql-files
ports:
- ${DATABASE_PORT}:3306
redis:
image: redis
restart: always
ports:
- ${REDIS_PORT}:6379
volumes:
- redis_data:/data
app:
build:
context: .
dockerfile: Dockerfile
restart: on-failure
env_file:
- .env
volumes:
- .:/code
ports:
- 8000:8000
- 6060:6060
depends_on:
- mysql
- redis
volumes:
mysql_data:
redis_data: