-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.44 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
51
52
53
54
55
version: "3.0"
services:
server:
build: ./
restart: on-failure
volumes:
- ./website-backend/receive-text:/usr/src/website-backend/receive-text
- ./semantic-parser:/usr/src/semantic-parser
- ./data/certbot/conf:/etc/letsencrypt
environment:
- NODE_ENV=production
ports:
- 5000:5000
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
command: bash -c "cd /usr/src && ./receiver_parser_setup.sh"
web:
build: ./website-frontend
restart: on-failure
volumes:
- ./website-frontend:/usr/src/app
environment:
- NODE_ENV=production
ports:
- 8080:8080
logging:
driver: "json-file"
options:
max-size: "20m"
max-file: "5"
command: bash -c "npm install && npm start"
nginx:
image: nginx:alpine
restart: unless-stopped
volumes:
- ./data/nginx:/etc/nginx/conf.d
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;"'''
ports:
- 80:80
- 443:443
certbot:
image: certbot/certbot
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
logging:
driver: "none"