forked from fanaticscripter/EggContractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (50 loc) · 1.85 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
version: "3"
services:
app:
image: fanaticscripter/eggcontractor:latest
container_name: EggContractor
restart: always
environment:
# TZ should be set to the local timezone in .env; e.g. TZ=America/New_York
- TZ=${TZ}
ports:
# Use 0.0.0.0 only if you want to access the web app on the local network
# directly, without a reverse proxy layer. You may change the host port
# (the first port number) to another value.
- "0.0.0.0:8080:8080"
volumes:
# config.toml should set database.path to /data/data.db
- ./config.toml:/config.toml
- ./data:/data
labels:
ofelia.enabled: "true"
# Scheduling refreshes.
#
# Schedule syntax is documented at
# - https://github.com/mcuadros/ofelia
# - https://pkg.go.dev/github.com/robfig/[email protected]
# Note that if you use cron syntax, the syntax has been extended to add
# a second field at the beginning, so every minute would be "0 * * * * *"
# instead of "* * * * *", and so on.
ofelia.job-exec.refresh.schedule: "@every 2m"
ofelia.job-exec.refresh.user: 0
ofelia.job-exec.refresh.command: "/EggContractor refresh --no-display"
ofelia.job-exec.refresh.save-folder: /logs
ofelia.job-exec.refresh.save-only-on-error: true
# Scheduling daily database backups.
ofelia.job-exec.db-backup.schedule: "0 0 0 * * *"
ofelia.job-exec.db-backup.user: 0
ofelia.job-exec.db-backup.command: "/EggContractor backup"
ofelia.job-exec.db-backup.save-folder: /logs
ofelia.job-exec.db-backup.save-only-on-error: true
build: .
ofelia:
image: mcuadros/ofelia:latest
container_name: EggContractor_sched
restart: always
depends_on:
- app
command: daemon --docker
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./logs:/logs