forked from Kae-Tempest/TempestBoard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
50 lines (50 loc) · 1.13 KB
/
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
services:
django:
build:
context: ./back
restart: unless-stopped
ports:
- "8000:8000"
tty: true
volumes:
- ./back:/app
depends_on:
- db
nuxt:
build:
context: ./front
container_name: TempestBoard-front
restart: unless-stopped
volumes:
- ./front:/app
ports:
- "3000:3000"
tty: true
depends_on:
- db
- django
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