-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
37 lines (37 loc) · 990 Bytes
/
docker-compose.prod.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
---
version: '3.8'
secrets:
app_secrets:
file: ./secrets/app_secrets
redis_pass:
file: ./secrets/redis_pass
services:
redis:
image: docker.io/library/redis:7
restart: always
command: [bash, -c, 'docker-entrypoint.sh --appendonly yes --save 60 1 --notify-keyspace-events AKE --requirepass "$$(cat $$REDIS_PASS_FILE)"']
environment:
REDIS_PASS_FILE: /run/secrets/redis_pass
volumes:
- "/srv/probematic/redis:/data:z"
labels:
io.containers.autoupdate: registry
secrets:
- redis_pass
app:
image: ghcr.io/ramblurr/probematic:latest
restart: always
depends_on:
- redis
environment:
REDIS_PASS_FILE: /run/secrets/redis_pass
APP_SECRETS_FILE: /run/secrets/app_secrets
DATOMIC_DB_STORAGE_DIR: /data/datomic
HTTP_BIND_HOST: 0.0.0.0
HTTP_PORT: 6160
APP_ENVIRONMENT: prod
volumes:
- "/srv/probematic/app/datomic:/data/datomic:z"
secrets:
- app_secrets
...