-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose-prod.yml
44 lines (44 loc) · 1.09 KB
/
compose-prod.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
services:
django:
image: ghcr.io/kae-tempest/tempestboard:develop
restart: unless-stopped
ports:
- "8000:8000"
tty: true
env_file:
- ./back/.env
depends_on:
- db
db:
image: postgres:16-alpine
command: postgres -c config_file=/etc/postgresql.conf
shm_size: '4gb'
ulimits:
nofile:
soft: 98304
hard: 98304
ports:
- "6932:5432"
volumes:
- ./docker/postgresql/postgresql.conf:/etc/postgresql.conf
- ./data/postgresql:/var/lib/postgresql/data
- ./docker/postgresql/init.sh:/docker-entrypoint-initdb.d/init.sh
- ./docker/init-db.sql:/docker-entrypoint-initdb.d/init.sql
environment:
POSTGRES_USER: 'postgres'
POSTGRES_PASSWORD: 'root'
POSTGRES_DB: 'tempestboard'
ALLOW_IP_RANGE: 0.0.0.0/0
restart: always
healthcheck:
test: [ "CMD", "pg_isready" ]
timeout: 5s
retries: 300
redis:
image: redis:6.2-alpine
restart: always
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning
volumes:
- ./cache:/data