-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
executable file
·70 lines (65 loc) · 2.03 KB
/
docker-compose.yaml
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
64
65
66
67
68
69
70
version: "3"
services:
sg-backend:
build:
context: './sensorgnome-server'
image: ubuntu:latest
container_name: sgs-backend
hostname: sgs-backend
restart: on-failure
ports:
- "59022:59022"
- "59023:59023"
- "59024:59024"
- "59025:59025"
- "59026:59026"
- "59027:59027"
volumes:
- ./docker-volumes/sensorgnome-server/logs:/sensorgnome-logs
- ./docker-volumes/sensorgnome-server/database/sg_remote.sqlite:/home/sg_remote/sg_remote.sqlite
- ./docker-volumes/sensorgnome-server/ssh-keys/.ssh:/home/sg_remote/.ssh
- ./docker-volumes/sensorgnome-server/status/index.md:/home/johnb/src/sensorgnome-website/content/status/index.md
command:
sh -c "/sensorgnome-server-software/sensorgnomeServer >> /sensorgnome-logs/sensorgnomeServer.log.txt 2>&1"
stdin_open: true
tty: true
networks:
- sg_network
nginx:
image: nginx:alpine
container_name: sgs-nginx
hostname: sgs-nginx
ports:
- "10080:80"
- "10443:443"
expose:
- "1313"
volumes:
- ./docker-volumes/nginx/etc/nginx:/etc/nginx
- ./docker-volumes/nginx/etc/ssl:/etc/ssl
- ./docker-volumes/nginx/logs:/var/log/nginx
networks:
- sg_network
sg-hugo:
build:
context: './hugo-static'
image: ubuntu:latest
container_name: sgs-hugo
hostname: sgs-hugo
restart: on-failure
expose:
- "1313"
- "443"
volumes:
- ./docker-volumes/hugo/logs:/hugo-logs
- ./docker-volumes/sensorgnome-server/status/index.md:/hugo/content/status/index.md
- ./docker-volumes/sg-releases:/hugo/sensorgnome-website/static/sg-releases
command:
sh -c "cd /hugo/sensorgnome-website && hugo server --logFile /hugo-logs/hugolog.txt --liveReloadPort=443 --port=1313 --bind=0.0.0.0 --baseUrl=sensorgnome.org --appendPort=false"
stdin_open: true
tty: true
networks:
- sg_network
networks:
sg_network:
driver: bridge