-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (40 loc) · 1014 Bytes
/
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
services:
nekokai:
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
container_name: nekokai
build:
context: ./
ports:
- '3000:3000'
restart: 'no'
environment:
DATABASE_URL: 'postgresql://postgres:[email protected]:5432/nekokai?schema=public'
INTERNAL_RING_URL: http://host.docker.internal:3001/guilds
REDIS_HOST: host.docker.internal
env_file:
- src/.env
- src/.env.development.local
postgres:
container_name: nekokai-postgres
image: 'postgres:15-alpine'
ports:
- '5432:5432'
restart: 'no'
volumes:
- 'nekokai-postgres-data:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=nekokai
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
volumes:
nekokai-postgres-data: