-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (37 loc) · 1013 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
version: "3"
services:
es-call-backend:
build: ./backend
restart: always
container_name: es-call-backend
command: yarn start
ports:
- "3000:3000"
volumes:
- "./backend:/usr/es-call-backend"
depends_on:
- postgres
es-call-frontend:
build: ./frontend
restart: always
container_name: es-call-frontend
ports:
- "8080:8080"
volumes:
- "./frontend:/usr/es-call-frontend"
depends_on:
- es-call-backend
postgres:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: "admin"
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/src/database_script/generate_schema.sql:/docker-entrypoint-initdb.d/1.sql
- ./backend/src/database_script/script_1.sql:/docker-entrypoint-initdb.d/2.sql
- ./backend/src/database_script/script_2.sql:/docker-entrypoint-initdb.d/3.sql
volumes:
postgres_data: