-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (110 loc) · 2.53 KB
/
docker-compose.yml
File metadata and controls
110 lines (110 loc) · 2.53 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: '3.8'
networks:
dev:
driver: bridge
services:
db:
container_name: schedule-db
image: 'postgres:latest'
restart: always
deploy:
resources:
limits:
cpus: '0.3'
memory: 1.5G
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_HOST_AUTH_METHOD=scram-sha-256
- POSTGRES_INITDB_ARGS=--auth-host=scram-sha-256
volumes:
- pgdata:/var/lib/postgresql
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 10s
timeout: 5s
retries: 5
networks:
- dev
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
cache:
container_name: schedule-cache
image: 'docker.dragonflydb.io/dragonflydb/dragonfly'
restart: always
deploy:
resources:
limits:
cpus: '0.3'
memory: 1.5G
command: ['--requirepass', '${CACHE_PASSWORD}']
ulimits:
memlock: -1
volumes:
- dragonflydata:/data
networks:
- dev
environment:
- CACHE_PASSWORD=${CACHE_PASSWORD}
healthcheck:
test: ['CMD', 'redis-cli', '-a', '${CACHE_PASSWORD}', 'ping']
interval: 10s
timeout: 5s
retries: 5
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
cist-proxy:
container_name: schedule-cist-proxy
image: ghcr.io/mindenit/cistproxy:main
networks:
- dev
environment:
- ASPNETCORE_HTTP_PORTS=5035
api:
container_name: schedule-api
build:
context: .
dockerfile: Dockerfile
restart: always
deploy:
resources:
limits:
cpus: '0.3'
memory: 1.5G
ports:
- '${PORT}:8080'
environment:
- NODE_ENV=production
- PORT=${PORT}
- POSTGRES_HOST=db
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_PORT=5432
- COOKIE_SECRET=${COOKIE_SECRET}
- CACHE_HOST=cache
- CACHE_USER=default
- CACHE_PASSWORD=${CACHE_PASSWORD}
- CACHE_PORT=6379
- PROXY_BASE_URL=${PROXY_BASE_URL}
- DISCORD_WEBHOOK_URL=${DISCORD_WEBHOOK_URL}
depends_on:
db:
condition: service_healthy
networks:
- dev
logging:
driver: 'json-file'
options:
max-size: '10m'
max-file: '3'
volumes:
pgdata:
dragonflydata: