forked from Spynacz/concertify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 928 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
services:
database:
container_name: PostgreSQL
image: postgres:latest
environment:
POSTGRES_USER: DB_USER
POSTGRES_PASSWORD: DB_PASSWORD
POSTGRES_DB: DB_NAME
volumes:
- ./postgresql:/docker-entrypoint-initdb.d
- ./postgresql/data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: always
env_file:
- .env
backend:
container_name: Django
build: ./backend
command: /backend/entrypoint.sh
volumes:
- ./backend:/backend
ports:
- "8000:8000"
environment:
POSTGRES_USER: DB_USER
POSTGRES_PASSWORD: DB_PASSWORD
POSTGRES_DB: DB_NAME
depends_on:
- database
env_file:
- .env
frontend:
container_name: React
build: ./frontend
volumes:
- ./frontend:/frontend
- /frontend/node_modules
environment:
- NODE_ENV=development
ports:
- "3000:3000"