-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (50 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
50 lines (50 loc) · 1.38 KB
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
version: "3"
services:
nginx:
image: nginx:1.15-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
backend:
environment:
- ACCESS_TOKEN_SECRET=$ACCESS_TOKEN_SECRET
- DBHost=$DBHost
- MONGODB_DEV_URI=$MONGODB_DEV_URI
- RABBITMQ_DEV_HOST=$RABBITMQ_DEV_HOST
- RABBITMQ_PORT=$RABBITMQ_PORT
- RABBITMQ_USER=$RABBITMQ_USER
- RABBITMQ_USER_PW=$RABBITMQ_USER_PW
- REFRESH_TOKEN_SECRET=$REFRESH_TOKEN_SECRET
- EMAIL_CONFIRMATION_SECRET=$EMAIL_CONFIRMATION_SECRET
- EMAIL_USER=$EMAIL_USER
- EMAIL_PASS=$EMAIL_PASS
container_name: server
image: goodbuy/nodejs-webserver:dev
volumes:
- /var/log:/usr/src/app/log
ports:
- "8080:8080"
command: "node dist/server.js"
depends_on:
- nginx
watchtower:
image: containrrr/watchtower
container_name: watchtower
environment:
- WATCHTOWER_CLEANUP="true"
- TZ=Europe/Berlin
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: --interval 900 --debug --cleanup
depends_on:
- backend