-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (41 loc) · 1.01 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
version: '3.9'
services:
acrysel:
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
container_name: acrysel
build:
context: ./
ports:
- '3000:3000'
restart: 'no'
environment:
DATABASE_URL: 'postgresql://postgres:[email protected]:5432/acrysel?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: acrysel-postgres
image: 'postgres:15-alpine'
ports:
- '5432:5432'
restart: 'no'
volumes:
- 'acrysel-postgres-data:/var/lib/postgresql/data'
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=acrysel
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
volumes:
acrysel-postgres-data: