-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 929 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
version: "3"
services:
backend:
container_name: backend
restart: always
build:
context: .
dockerfile: Dockerfile.dev
ports:
# GraphQlPort
- 4040:3000
# Express port
- 4041:3001
environment:
- PGHOST=pg_database
- PGUSER=postgres
- PGDATABASE=postgres
- PGPASSWORD=postgres
- PGPORT=5432
depends_on:
- pg_database
volumes:
- /app/node_modules
- ./services/backend/:/app/services/backend
###################################
####### DATABSE SERVICE ###########
###################################
pg_database:
container_name: database
restart: always
image: postgres:12
ports:
- 5432:5432
- 5433:5433
environment:
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./databases/backend:/var/lib/postgresql/data