forked from felipelm/django-nginx-reactjs-docker
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
41 lines (38 loc) · 958 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
#This script is for developement use only. Please do not deploy it in production in its current stage.
#Exposing backend and db directly to enable dubuging locally
version: "3"
services:
db:
restart: always
image: postgres:10.1-alpine
container_name: "project-thundercat_postgres"
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
backend:
build: ./backend
volumes:
- ./backend/:/backend # maps host directory to internal container directory
working_dir: /backend/
command: sh entrypoint.sh
depends_on:
- db
ports:
- 8000:8000
frontend:
volumes:
- ./frontend:/home/node
build: ./frontend
command: sh entrypoint.sh
working_dir: /home/node
nginx:
build: ./nginx
ports:
- 80:8080
volumes:
- ./nginx/nginx-proxy.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- backend
volumes:
postgres_data: