forked from g0v/itaigi
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
78 lines (75 loc) · 1.87 KB
/
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
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
---
services:
gunicorn:
build: ./
networks:
- default
- nginx-bridge
environment:
VIRTUAL_HOST: ${DEPLOY_HOST:-itaigi.tw}
LETSENCRYPT_HOST: ${DEPLOY_HOST:-itaigi.tw}
LETSENCRYPT_EMAIL: "[email protected]"
DEPLOY_HOST: ${DEPLOY_HOST:-itaigi.tw}
SECRET_KEY: ${SECRET_KEY}
restart: always
postgres:
image: postgres:15
labels:
- backup.postgres=true
shm_size: '1gb'
restart: always
environment:
POSTGRES_PASSWORD: itaigi
volumes:
- pgsql_data:/var/lib/postgresql/data
celery_beat:
build: ./
command: celery -A itaigi beat -l info --pidfile=
environment:
DEPLOY_HOST: ${DEPLOY_HOST:-itaigi.tw}
SECRET_KEY: ${SECRET_KEY}
restart: always
celery:
build: ./
command: celery -A itaigi worker -l info
environment:
DEPLOY_HOST: ${DEPLOY_HOST:-itaigi.tw}
SECRET_KEY: ${SECRET_KEY}
restart: always
rabbitmq:
image: rabbitmq:3-management
environment:
RABBITMQ_DEFAULT_USER: itaigi
RABBITMQ_DEFAULT_PASS: itaigi
RABBITMQ_DEFAULT_VHOST: itaigi
volumes:
- rabbit_data:/var/lib/rabbitmq
restart: always
miasenn:
image: ithuan/itaigi:miasenn
command: gunicorn miasenn.wsgi --log-level debug -b 0.0.0.0:8000
networks:
- nginx-bridge
environment:
VIRTUAL_HOST: "miasenn.itaigi.tw"
LETSENCRYPT_HOST: "miasenn.itaigi.tw"
LETSENCRYPT_EMAIL: "[email protected]"
restart: always
leku:
image: ithuan/itaigi:leku
command: gunicorn hok8bu7.wsgi --log-level debug -b 0.0.0.0:8000
networks:
- nginx-bridge
expose:
- 8000
environment:
VIRTUAL_HOST: "leku.itaigi.tw"
LETSENCRYPT_HOST: "leku.itaigi.tw"
LETSENCRYPT_EMAIL: "[email protected]"
restart: always
volumes:
pgsql_data:
rabbit_data:
networks:
nginx-bridge:
external: true