-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
81 lines (74 loc) · 1.84 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
networks:
default:
external: true
name: scoobydoo
services:
djanguard_postgresql:
image: postgres:latest
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: djanguard
POSTGRES_DB: djanguard
networks:
- default
volumes:
- ./config/postgresql.conf:/etc/postgresql/postgresql.conf
- pgdatadjanguard:/var/lib/postgresql/data
ports:
- "${DB_EXTERNAL_PORT}:5432"
djanguard_redis:
image: redis:latest
networks:
- default
djanguard_celery:
build:
context: .
dockerfile: Dockerfile
command: "/app/superstart.py"
volumes:
- .:/app
- django_djanguard_static:/django_djanguard_static
- django_djanguard_data:/django_djanguard_data
depends_on:
- djanguard_redis
- djanguard_postgresql
environment:
SERVICE_ROLE: celery
TZ: "Asia/Singapore"
networks:
- default
djanguard_django:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
volumes:
- .:/app:rw
- django_djanguard_static:/django_djanguard_static
- django_djanguard_data:/django_djanguard_data
- ./config/default_nginx.conf:/etc/nginx/conf.d/default.conf
- ./config/nginx.conf:/etc/nginx/nginx.conf
command: "/app/superstart.py"
environment:
SERVICE_ROLE: django
TZ: "Asia/Singapore"
VIRTUAL_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_HOST: ${LETSENCRYPT_HOST}
LETSENCRYPT_EMAIL: [email protected]
depends_on:
- djanguard_redis
- djanguard_postgresql
networks:
- default
telegram_bot:
build:
context: ./telegram_bot
dockerfile: Dockerfile
restart: unless-stopped
networks:
- default
volumes:
pgdatadjanguard:
django_djanguard_static:
django_djanguard_data: