-
Notifications
You must be signed in to change notification settings - Fork 35
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1006 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
48
49
50
version: "3.8"
services:
appseed-app:
container_name: appseed-app
restart: always
build:
context: .
networks:
- db_network
- web_network
volumes:
- ./db.sqlite3:/db.sqlite3
nginx:
container_name: nginx
restart: always
image: "nginx:latest"
ports:
- "5085:5085"
volumes:
- ./nginx:/etc/nginx/conf.d
networks:
- web_network
depends_on:
- appseed-app
redis:
image: redis:7.0.12
container_name: redis
command: ["redis-server", "--port", "6379", "--slave-read-only", "no"]
restart: always
ports:
- 6379:6379
networks:
- db_network
celery:
container_name: celery
restart: always
build:
context: .
networks:
- db_network
environment:
DJANGO_SETTINGS_MODULE: "core.settings"
command: "celery -A home worker -l info -B"
depends_on:
- appseed-app
networks:
db_network:
driver: bridge
web_network:
driver: bridge