blob: 63083422f7405fcb343a3ae0bb631da9f15ca92a (
plain)
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
|
services:
db:
image: postgres:18
container_name: kioku-db
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
expose:
- 5432
volumes:
- db_data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 10s
timeout: 5s
retries: 5
server:
build:
context: .
dockerfile: docker/server/Dockerfile
container_name: kioku-server
restart: unless-stopped
environment:
DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET}
NODE_ENV: production
expose:
- 3000
depends_on:
db:
condition: service_healthy
client:
build:
context: .
dockerfile: docker/client/Dockerfile
container_name: kioku-client
restart: unless-stopped
ports:
- "8080:80"
depends_on:
- server
volumes:
db_data:
|