-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose-production.yml
43 lines (43 loc) · 1.08 KB
/
docker-compose-production.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
version: "3.7"
networks:
toolkit_production:
driver: bridge
services:
toolkit:
user: "1001:1001"
networks:
- toolkit_production
image: toolkit:production
build: .
command: ["tk_run", "gunicorn"]
restart: on-failure
ports:
- "127.0.0.1:7191:8000"
volumes:
- type: bind
source: /home/toolkit/site/media/
target: /site/media/
- type: bind
source: /var/run/mysqld/mysqld.sock
target: /var/run/mysqld/mysqld.sock
- type: bind
source: /home/toolkit/settings_docker_production.py
target: /site/toolkit/settings.py
celery:
user: "1001:1001"
networks:
- toolkit_production
image: toolkit:production
command: ["tk_run", "celery"]
restart: on-failure
volumes:
- type: bind
source: /var/run/mysqld/mysqld.sock
target: /var/run/mysqld/mysqld.sock
- type: bind
source: /home/toolkit/settings_docker_production.py
target: /site/toolkit/settings.py
redis:
networks:
- toolkit_production
image: redis:7-bullseye