-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (50 loc) · 1.04 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
version: '3'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_DB: bc
POSTGRES_USER: bc
POSTGRES_PASSWORD: bc
volumes:
- ./pg.sql:/docker-entrypoint-initdb.d/pg.sql
nodejs:
image: neuralegion/brokencrystals
container_name: nodejs
restart: always
deploy:
resources:
limits:
cpus: 3.5
logging:
options:
max-file: "5"
max-size: "10m"
depends_on:
- db
proxy:
image: neuralegion/brokencrystals-client
restart: always
environment:
CERTBOT_EMAIL: "[email protected]"
ports:
- "80:80"
- "443:443"
depends_on:
- nodejs
volumes:
- ./nginx-config:/etc/nginx/user.conf.d:ro
- letsencrypt:/etc/letsencrypt
watchtower:
image: containrrr/watchtower
restart: always
logging:
options:
max-file: "5"
max-size: "10m"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: --interval 300 --debug
volumes:
letsencrypt: