-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.panda.yml
83 lines (76 loc) · 2.23 KB
/
docker-compose.panda.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
75
76
77
78
79
80
81
82
83
version: '3.9'
x-logging: &default-logging
driver: "local"
options:
max-size: "20m"
max-file: "5"
networks:
traefik-net:
external: true
services:
loan:
build: .
volumes:
- ./data/loan:/data
- ./data/storage:${OBJECT_STORAGE}
networks:
- traefik-net
depends_on:
postgresLoAN:
condition: service_healthy
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-net"
- "traefik.http.routers.loan-https.rule=Host(`loan.pandascreeps.com`)"
- "traefik.http.routers.loan-https.entrypoints=websecure"
- "traefik.http.routers.loan-https.tls.certresolver=letsencrypt"
- "traefik.http.routers.loan-http.rule=Host(`loan.pandascreeps.com`)"
- "traefik.http.routers.loan-http.entrypoints=web"
- "traefik.http.routers.loanExternal-https.rule=Host(`www.leagueofautomatednations.com`)"
- "traefik.http.routers.loanExternal-https.entrypoints=websecure"
- "traefik.http.routers.loanExternal-https.tls.certresolver=letsencrypt"
- "traefik.http.routers.loanExternal-http.rule=Host(`www.leagueofautomatednations.com`)"
- "traefik.http.routers.loanExternal-http.entrypoints=web"
logging: *default-logging
ports:
- 5002:5000
postgresLoAN:
image: postgres:14
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./data/postgres:/var/lib/postgresql/data
networks:
- traefik-net
logging: *default-logging
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "screeps"]
ports:
- 127.0.0.1:5434:5432
pgbackups:
image: kartoza/pg-backup:14-3.2
restart: always
logging: *default-logging
depends_on:
- postgresLoAN
networks:
- traefik-net
environment:
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASS=${DB_PASSWORD}
- POSTGRES_DB=${DB}
- POSTGRES_HOST=postgresLoAN
volumes:
- /var/opt/pgbackups:/backups
cronjob:
build: cronJob
logging: *default-logging
restart: unless-stopped
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- "./logs:/usr/app/logs"
networks:
- traefik-net