-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (42 loc) · 885 Bytes
/
docker-compose.yaml
File metadata and controls
47 lines (42 loc) · 885 Bytes
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.4'
x-common-variables: &common-variables
CELERY_BROKER_URL: redis://redis:6379
CELERY_RESULT_BACKEND: redis://redis:6379
MYSQL_HOST: mysql
MYSQL_ROOT_PASSWORD: mysql123
MYSQL_USER: mysql
MYSQL_PASSWORD: mysql123
MYSQL_DATABASE: hse-api-database
RESTRICTED_MODE: 0
services:
hse-api-web:
build: .
ports:
- "80:80"
depends_on:
- redis
- mysql
- hse-api-celery
environment: *common-variables
volumes:
- type: bind
source: ./data
target: /data
hse-api-celery:
build: .
command: celery -A main.celery worker
depends_on:
- redis
- mysql
environment: *common-variables
volumes:
- type: bind
source: ./data
target: /data
mysql:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment: *common-variables
redis:
image: redis:latest