-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
57 lines (53 loc) · 1.28 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
51
52
53
54
55
56
57
version: '3'
volumes:
envergo_postgres_data: {}
envergo_postgres_data_backups: {}
envergo_node_modules: {}
services:
django:
build:
context: .
dockerfile: ./compose/django/Dockerfile
image: envergo_django
container_name: envergo_django
depends_on:
- postgres
volumes:
- .:/app:z
- envergo_node_modules:/app/node_modules
env_file:
- .env
- ./envs/django
- ./envs/postgres
ports:
- "8000:8000"
command: /start
postgres:
build:
context: .
dockerfile: ./compose/postgres/Dockerfile
image: envergo_postgres
container_name: envergo_postgres
volumes:
- envergo_postgres_data:/var/lib/postgresql/data:Z
- envergo_postgres_data_backups:/backups:z
env_file:
- .env
- ./envs/postgres
node:
build:
context: .
dockerfile: ./compose/node/Dockerfile
image: envergo_node
container_name: envergo_node
depends_on:
- django
volumes:
- .:/app:z
# http://jdlm.info/articles/2016/03/06/lessons-building-node-app-docker.html
- envergo_node_modules:/app/node_modules
command: npm run dev
ports:
- "3000:3000"
# Expose browsersync UI: https://www.browsersync.io/docs/options/#option-ui
- "3001:3001"