-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
50 lines (40 loc) · 919 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
50
version: '3.9'
services:
#Backend build
# api:
# build: ./Backend
# command: python3 manage.py run -h 0.0.0.0
# container_name: flask-api
# depends_on:
# - database
# ports:
# - 5000:5000
# env_file:
# - ./Backend/env.dev
# volumes:
# - .:/code
#DB build
database:
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: VacationIO
image: 'postgres:latest'
container_name: VacationIO
restart: always
ports:
- 5432:5432
volumes:
#- postgres_data:/var/lib/postgresql/data/
- ./db-data/:/var/lib/postgresql/data=rwx/
#Frontend build
# frontend:
# build:
# context: ./frontend
# ports:
# - "3000:3000"
# container_name: react-ui
# stdin_open: true
# volumes:
# - ./frontend:/usr/src/frontend
# - /usr/src/frontend/node_modules