-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (85 loc) · 1.82 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: "2.1"
networks:
galactusnet:
driver: bridge
services:
postgres_host:
image: postgres
expose:
- "5432"
environment:
- POSTGRES_PASSWORD=postgres
networks:
- galactusnet
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
room:
image: rjected/galactusroom:latest
expose:
- "8080"
restart: always
networks:
- galactusnet
depends_on:
postgres_host:
condition: service_healthy
mongo_host:
image: mongo
restart: always
expose:
- "27017"
environment:
MONGO_INITDB_ROOT_USERNAME: mongoadmin
MONGO_INITDB_ROOT_PASSWORD: secret
networks:
- galactusnet
queue:
image: rjected/queueservice
expose:
- "9090"
restart: always
networks:
- galactusnet
sync:
image: rjected/galactussync
expose:
- "9595"
networks:
- galactusnet
web:
image: rjected/galactusweb:staging
expose:
- "3000"
depends_on:
- room
- sync
restart: always
networks:
- galactusnet
reverseproxy:
image: nginx:latest
ports:
- 80:80
- 443:443
depends_on:
- web
restart: always
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
networks:
- galactusnet
certbot:
image: certbot/certbot
restart: always
networks:
- galactusnet
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;'"