-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yaml
47 lines (47 loc) · 1.46 KB
/
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
version: '3' # deprecated in the latest versions of docker compose
services:
activity-roles:
image: ghcr.io/tippfehlr/activity-roles:latest
restart: unless-stopped
volumes:
- ./db:/activity-roles/db # legacy, for importing old sqlite databases. No idea if it works without the mount (eg. the folder)
environment:
- DATABASE_URL=postgres://activity-roles:PASSWORD@postgres:5432/activity-roles
- TOKEN=
- HOSTER_NAME=
- APPLICATION_ID=
# - INFLUX_URL=
# - INFLUX_TOKEN=
# - INFLUX_ORG=
# - INFLUX_BUCKET=
- NODE_OPTIONS="--max-old-space-size=7000"
- LOG_LEVEL=debug
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres
restart: unless-stopped
volumes:
- ./postgres:/var/lib/postgresql/data
# to expose the postgres instance, uncomment this
# it is STRONGLY recommended to change the (external) port if you expose this to the internet
# ports:
# - 5432:5432
environment:
- POSTGRES_USER=activity-roles
- POSTGRES_PASSWORD=PASSWORD
- POSTGRES_DB=activity-roles
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U activity-roles']
interval: 5s
timeout: 5s
retries: 5
# uncomment to enable influx, also fill env variables above
# influxdb:
# volumes:
# - ./influxdb-data:/var/lib/influxdb2
# image: influxdb:alpine
# restart: unless-stopped
# ports:
# - 8086:8086