-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.run.yml.sample
63 lines (63 loc) · 1.77 KB
/
docker-compose.run.yml.sample
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
version: '3'
services:
postgres:
image: postgres:12
restart: unless-stopped
environment:
POSTGRES_USER: "postgresuser"
POSTGRES_PASSWORD: "pass"
volumes:
- /etc/localtime:/etc/localtime:ro
- moniteur-data:/var/lib/postgresql/data
redis:
image: redis
restart: unless-stopped
# Remove this for no password
command: >
--requirepass secret --appendonly yes
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/lib/redis/:/data:rw
backend:
depends_on:
- postgres
- redis
image: docker.pkg.github.com/aueb-cslabs/moniteur/backend
restart: unless-stopped
environment:
# postgresql://<username>:<password>@<hostname>:<port>/<databse>?sslmode=disable
POSTGRES_URI: "postgresql://postgresuser:pass@postgres:5432/postgres?sslmode=disable"
REDIS_URI: "redis:6379"
# Leave empty for no password
REDIS_PASSWORD: "secret"
JWT_SECRET: "secret"
SENTRY_DSN: "sentry-dsn"
ports:
- 27522:27522
# Change these to match your preference
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/ssl/certs/:/production/certificates:ro
- /home/christos/config/:/production/config:rw
frontend:
depends_on:
- backend
image: docker.pkg.github.com/aueb-cslabs/moniteur/frontend
restart: unless-stopped
ports:
- 80:80
- 443:443
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/ssl/certs/:/production/certificates:ro
watchtower:
image: containrrr/watchtower
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: >
--interval 15 backend frontend
volumes:
moniteur-data:
driver: local