-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
50 lines (49 loc) · 1.03 KB
/
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
50
version: "3"
services:
frontend:
image: frontend
container_name: frontend-local
build:
dockerfile: ./frontend/Dockerfile
context: .
environment:
- PORT=3000
- API_HOST=http://backend-local:3001
ports:
- 3000:3000
networks:
- dateam-app
depends_on:
- backend
backend:
image: backend
container_name: backend-local
build:
dockerfile: ./backend/Dockerfile
context: .
env_file: ./.env
ports:
- "${OUT_PORT}:${PORT}"
networks:
- dateam-app
depends_on:
- postgres
postgres:
image: "postgres:13.2"
environment:
- POSTGRES_DB=${DB_DATABASE}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
ports:
- "${DB_PORT}:5432"
networks:
- dateam-app
volumes:
- postgres-data:/var/lib/postgresql/data
- ./backend/src/db/DBInitSQL/schema.sql:/docker-entrypoint-initdb.d/schema.sql
networks:
dateam-app:
driver: bridge
volumes:
postgres-data:
driver: local