-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
95 lines (92 loc) · 2.31 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
services:
maidboye:
image: ghcr.io/donovandmc/maidboye
container_name: maidboye
volumes:
- ./data/bot:/data
- /etc/hostname:/data/hostname
restart: always
init: true
healthcheck:
interval: 5s
timeout: 1s
test: wget -q --spider http://127.0.0.1:3621
deploy:
resources:
limits:
memory: 2048M
reservations:
memory: 512M
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
hostname: maidboye.containers.local
labels:
- "hostname=maidboye.containers.local"
- "traefik.enable=true"
- "traefik.http.routers.maidboye.rule=HostRegexp(`api.maid.gay`)"
- "traefik.http.routers.maidboye.entrypoints=https"
- "traefik.http.routers.maidboye.tls=true"
- "traefik.http.services.maidboye.loadbalancer.server.port=8080"
networks:
- default
postgres:
image: postgres:14-alpine
container_name: postgres.maidboye
volumes:
- ./data/db:/var/lib/postgresql/data
- ./src/db/migrations:/docker-entrypoint-initdb.d:ro
restart: unless-stopped
environment:
- POSTGRES_USER=maidboye
- POSTGRES_DB=maidboye
- POSTGRES_HOST_AUTH_METHOD=trust
healthcheck:
interval: 5s
timeout: 2s
test: pg_isready -U maidboye
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 128M
hostname: postgres.maidboye.containers.local
labels:
- "hostname=postgres.maidboye.containers.local"
networks:
- default
redis:
image: redis:alpine
container_name: redis.maidboye
command: redis-server --save 10 1 --loglevel warning
volumes:
- ./data/redis:/data
restart: unless-stopped
healthcheck:
test: redis-cli ping
interval: 10s
timeout: 5s
deploy:
resources:
limits:
memory: 128M
reservations:
memory: 64M
hostname: redis.maidboye.containers.local
labels:
- "hostname=redis.maidboye.containers.local"
networks:
- default
networks:
default:
name: maidboye
driver: bridge
ipam:
driver: default
config:
- subnet: 172.19.3.0/29
driver_opts:
com.docker.network.bridge.name: br-maidboye