-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (48 loc) · 1.19 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
version: "3"
services:
frontend:
tty: true
stdin_open: true
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/app
environment:
API_URL: http://backend:9292
CREATE_DEMO_TENANT: false
# LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
# LD_PRELOAD: /usr/lib/aarch64-linux-gnu/libjemalloc.so.2
expose:
- 4321
ports:
- 4321:4321
depends_on:
backend:
condition: service_started
db:
condition: service_started
backend:
image: ghcr.io/simonneutert/ka-ching-backend:v0.6.0
environment:
DATABASE_URL: db
DATABASE_USER: kaching
DATABASE_PASSWORD: kaching
KACHING_RESET_PROTECTION: false
# LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libjemalloc.so.2
# LD_PRELOAD: /usr/lib/aarch64-linux-gnu/libjemalloc.so.2
depends_on:
db:
condition: service_healthy
db:
image: postgres:16-alpine
environment:
POSTGRES_USER: kaching
POSTGRES_PASSWORD: kaching
LC_ALL: C.UTF-8
LANG: en_US.UTF-8
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER"]
interval: 5s
timeout: 5s
retries: 5