-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (45 loc) · 990 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
43
44
45
46
47
48
49
version: '3.7'
services:
db:
image: postgres:latest
container_name: postgres
restart: always
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
TZ: Asia/Seoul
ports:
- '5432:5432'
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- postgres_data:/var/lib/postgresql/data
networks:
- custom-network
backend:
container_name: nest
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
TZ: Asia/Seoul
DB_HOST: db
DB_PORT: 5432
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
ports:
- '8000:8000'
depends_on:
- db
networks:
- custom-network
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
networks:
custom-network:
name: whispertalk_custom-network
volumes:
postgres_data: