-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (54 loc) · 1.37 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
version: '3'
services:
nginx:
image: nginx:alpine
container_name: nginx
volumes:
- ./nginx/certs:/etc/nginx/certs
- ./nginx/snippets:/etc/nginx/snippets
- ./nginx:/etc/nginx/conf.d:ro
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
- ./webapp/dist:/var/www/webapp
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "5001:5001"
network_mode: host
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
certbot:
image: certbot/certbot
container_name: certbot
restart: unless-stopped
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
johnny:
container_name: johnny
build:
context: johnny
dockerfile: Dockerfile
volumes:
- ./johnny:/app
- ./data/wav:/wav
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyACM0:/dev/ttyACM0
restart: unless-stopped
ports:
- "8090:8090"
privileged: true
network_mode: host
tty: true
command: make run
webapp:
container_name: webapp
build:
context: webapp
dockerfile: Dockerfile
volumes:
- ./webapp:/app
restart: no
command: make build