-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (43 loc) · 1005 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
version: '3.7'
services:
frontend:
container_name: frontend
build:
context: ./frontend/
image: app/frontend
volumes:
- ./frontend/:/app
- /app/node_modules
ports:
- 3000:3000
env_file:
- .env
depends_on:
- backend
backend:
container_name: backend
build:
context: ./backend/
image: app/backend
volumes:
- ./backend/:/app
- /app/node_modules
ports:
- 5000:5000
- 5555:5555
env_file:
- .env
depends_on:
- db
db:
container_name: db
image: postgres:13
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE_NAME}
PG_DATA: /var/lib/postgresql/data
ports:
- 5432:5432
volumes:
PG_DATA: