-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
47 lines (43 loc) · 942 Bytes
/
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
version: '3.8'
services:
database:
image: postgres:16.0-alpine
container_name: vantar_db
restart: unless-stopped
networks:
- vantar_net
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
volumes:
- vantar-todo:/var/lib/postgresql/data
ports:
- 5434:5432
healthcheck:
# test: ["CMD-SHELL", "pg_isready -U ${DB_USER}"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: .
args:
DATABASE_URL: ${DATABASE_URL}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_NAME: ${DB_NAME}
DIRECT_URL: ${DIRECT_URL}
container_name: vantar_api
networks:
- vantar_net
depends_on:
- database
ports:
- ${PORT}:${PORT}
env_file: .env.docker
networks:
vantar_net:
driver: bridge
volumes:
vantar-todo: