-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.04 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.04 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
services:
wytness-backend:
container_name: wytness-nest_backend
env_file:
- .env
environment:
NODE_ENV: development
POSTGRES_HOST: wytness-postgres
DATABASE_URL: >
postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@wytness-postgres:${POSTGRES_PORT}/${POSTGRES_DB}?schema=public
build:
context: ./
dockerfile: Dockerfile
args:
NODE_ENV: ${NODE_ENV}
PORT: ${PORT}
ports:
- "${PORT}:${PORT}"
depends_on:
wytness-postgres:
condition: service_healthy
networks:
- wytness-net
wytness-postgres:
image: postgres:15
container_name: wytness-postgres_db
env_file:
- .env
environment:
POSTGRES_HOST: wytness-postgres
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- wytness-net
healthcheck:
test: "pg_isready --username=${POSTGRES_USER} --dbname=${POSTGRES_DB}"
interval: 2s
timeout: 10s
retries: 5
networks:
wytness-net:
external: false
volumes:
pgdata: