forked from wger-project/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.override.example.yml
More file actions
90 lines (80 loc) · 2.28 KB
/
docker-compose.override.example.yml
File metadata and controls
90 lines (80 loc) · 2.28 KB
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
# Example override file. Copy as docker-compose.override.yml and edit as needed
services:
web:
env_file:
- ./config/prod.env
- ./config/wger-local.env # Only add the variables that you have changed
celery_worker:
env_file:
- ./config/prod.env
- ./config/wger-local.env
celery_beat:
env_file:
- ./config/prod.env
- ./config/wger-local.env
#
# Example configuration to add Anubis as a debugging proxy in front of the web
# service. If you set up wger on a public server, and get flooded with ai crawler
# requests, you sadly will have to deal with them.
anubis:
image: ghcr.io/techarohq/anubis:latest
pull_policy: always
environment:
BIND: ":3000"
METRICS_BIND: ":9090"
TARGET: http://web:8000
POLICY_FNAME: "/data/cfg/anubis-rules.yml"
WEBMASTER_EMAIL: "hello@wger.de"
# generate with: openssl rand -hex 32
ED25519_PRIVATE_KEY_HEX: "dba7c07331693b7beaeae102765568dd3c35cc1b6b3b23adaeeb5ecee406cc71"
healthcheck:
test: [ "CMD", "anubis", "--healthcheck" ]
interval: 5s
timeout: 30s
retries: 5
start_period: 500ms
volumes:
- "./config/anubis-rules.yml:/data/cfg/anubis-rules.yml:ro"
#
# Example configuration using caddy instead of nginx. Since we don't want to
# change the main compose file as it would break existing deployments, the nginx
# service needs to stay there. Here we simply remove any exposed ports
# caddy:
# image: caddy:latest
# depends_on:
# - web
# ports:
# - "2019:2019"
# - "80:80"
# - "443:443"
# - "443:443/udp"
# volumes:
# - ./config/Caddyfile:/etc/caddy/Caddyfile
# - caddy-data:/data
# - caddy-logs:/var/www/logs
# - caddy-config:/config
# - static:/wger/static:ro
# - media:/wger/media:ro
#
# nginx:
# ports: !reset []
celery_flower:
image: docker.io/wger/server:latest
command: /start-flower
env_file:
- ./config/prod.env
ports:
- "5555:5555"
healthcheck:
test: wget --no-verbose --tries=1 http://localhost:5555/healthcheck
interval: 10s
timeout: 5s
retries: 5
depends_on:
celery_worker:
condition: service_healthy
#volumes:
# caddy_data:
# caddy-data:
# caddy-config:
# caddy-logs: