-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
117 lines (115 loc) · 3.21 KB
/
docker-compose.dev.yml
File metadata and controls
117 lines (115 loc) · 3.21 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
111
112
113
114
115
116
117
services:
caddy:
env_file:
- .env
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
api:
platform: linux/amd64 # for macOS to force running on Rosetta 2
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
env_file:
- .env
volumes:
- ./nilai-api/:/app/nilai-api/
- ./packages/:/app/packages/
- ./nilai-auth/nuc-helpers/:/app/nilai-auth/nuc-helpers/
nuc-api:
platform: linux/amd64 # for macOS to force running on Rosetta 2
ports:
- "8088:8080"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
nilauth-credit-server:
condition: service_healthy
volumes:
- ./nilai-api/:/app/nilai-api/
- ./packages/:/app/packages/
- ./nilai-auth/nuc-helpers/:/app/nilai-auth/nuc-helpers/
redis:
ports:
- "6379:6379"
postgres:
image: postgres:16
container_name: postgres
restart: always
ports:
- "5432:5432"
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
- ./scripts/postgres-init.sh:/docker-entrypoint-initdb.d/postgres-init.sh
healthcheck:
test: [ "CMD", "sh", "-c", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB} -h localhost" ]
interval: 30s
retries: 5
start_period: 10s
timeout: 10s
grafana:
container_name: grafana
image: 'grafana/grafana:11.5.1'
restart: unless-stopped
user: "$UID:$GID"
environment:
- GF_USERS_ALLOW_SIGN_UP=false
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:3000/api/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
env_file:
- .env
ports:
- "3000:3000"
volumes:
- ${PWD}/grafana/runtime-data:/var/lib/grafana
- ${PWD}/grafana/datasources/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ${PWD}/grafana/dashboards/filesystem.yml:/etc/grafana/provisioning/dashboards/filesystem.yml
- ${PWD}/grafana/config/grafana.ini:/etc/grafana/grafana.ini
nilauth-postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: nilauth
POSTGRES_PASSWORD: nilauth_dev_password
POSTGRES_DB: nilauth_credit
ports:
- "30432:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U nilauth -d nilauth_credit" ]
interval: 5s
timeout: 5s
retries: 5
nilauth-credit-server:
image: ghcr.io/nillionnetwork/nilauth-credit:sha-6ffbae7
platform: linux/amd64 # for macOS to force running on Rosetta 2
environment:
DATABASE_URL: postgresql://nilauth:nilauth_dev_password@nilauth-postgres:5432/nilauth_credit
HOST: 0.0.0.0
PORT: 3000
ports:
- "3030:3000"
depends_on:
nilauth-postgres:
condition: service_healthy
volumes:
- ./scripts/credit-init.sql:/app/migrations/20251015000006_seed_test_data.sql
healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/health" ]
interval: 30s
retries: 3
start_period: 15s
timeout: 10s
volumes:
postgres_data: