forked from thenewboston-developers/Core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
63 lines (56 loc) · 1.45 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
version: '3.9'
services:
db:
image: postgres:14.2-alpine
restart: unless-stopped
environment:
POSTGRES_DB: core
POSTGRES_USER: core
POSTGRES_PASSWORD: core
volumes:
- postgresql-data:/var/lib/postgresql/data
redis:
image: redis:6.2.6-alpine
restart: unless-stopped
volumes:
- redis-data:/var/lib/redis
core:
image: thenewboston/core:latest
restart: unless-stopped
command: ./run.sh
environment:
CORESETTING_DATABASES: '{"default":{"HOST":"db"}}'
CORESETTING_CHANNEL_LAYERS: '{"default":{"CONFIG":{"hosts":[["redis", 6379]]}}}'
env_file: .env
depends_on:
- db
- redis
core-reverse-proxy:
image: thenewboston/core-reverse-proxy:latest
restart: unless-stopped
ports:
- 80:80
- 443:443
depends_on:
- core
volumes:
- letsencrypt:/etc/letsencrypt
- acme-challenge:/usr/share/nginx/html/.well-known/acme-challenge/
certbot-renew:
image: certbot/certbot:v1.26.0
restart: unless-stopped
entrypoint: /bin/sh
# This will let us check certificate expiration every 7 days and renew if needed
command: -c 'certbot renew; sleep 7d'
volumes:
- letsencrypt:/etc/letsencrypt
- acme-challenge:/usr/share/nginx/html/.well-known/acme-challenge/
volumes:
postgresql-data:
driver: local
redis-data:
driver: local
letsencrypt:
driver: local
acme-challenge:
driver: local