-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
74 lines (69 loc) · 1.68 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
services:
wprs-forecast:
container_name: wprs-forecast
build:
context: ./
dockerfile: Dockerfile
environment:
DATABASE_URL: ${DATABASE_URL}
restart: always
depends_on:
- redis
- db
labels:
traefik.enable: true
traefik.http.routers.wprs-forecast.rule: "Host(`wprs-forecast.org`) || Host(`www.wprs-forecast.org`)"
traefik.http.routers.wprs-forecast.entrypoints: websecure
traefik.http.routers.wprs-forecast.tls.certresolver: myresolver
traefik.http.routers.wprs-forecast.priority: 100
traefik.port: 3000
traefik.docker.network: traefik
networks:
- internal
- traefik
db:
image: postgres:16-alpine
restart: always
shm_size: 128mb
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- wprs-forecast-db:/var/lib/postgresql/data
extra_hosts:
- "localhost:127.0.0.1"
ports:
- "127.0.0.1:5433:5432"
networks:
- internal
backup:
build:
context: ./backup
dockerfile: Dockerfile
args:
CLOUDFLARE_ACCESS_KEY_ID: ${CLOUDFLARE_ACCESS_KEY_ID}
CLOUDFLARE_SECRET_ACCESS_KEY: ${CLOUDFLARE_SECRET_ACCESS_KEY}
CLOUDFLARE_R2_ENDPOINT: ${CLOUDFLARE_R2_ENDPOINT}
restart: always
depends_on:
- db
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- internal
redis:
image: redis:alpine
restart: always
command: redis-server --save 60 1 --loglevel warning
volumes:
- cache:/data
networks:
- internal
networks:
traefik:
external: true
internal:
driver: bridge
volumes:
wprs-forecast-db:
cache:
driver: local