-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (63 loc) · 1.32 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
58
59
60
61
62
63
64
65
66
67
68
# Service setup for development
version: '2'
volumes:
postgres_data_dev: {}
postgres_backup_dev: {}
assets_bower_dev: {}
assets_node_dev: {}
services:
postgres:
image: postgres:9.6
volumes:
- postgres_data_dev:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=tfk
backend:
build:
context: .
dockerfile: ./compose/django/Dockerfile-dev
command: /start-dev.sh
depends_on:
- postgres
links:
- postgres:db
environment:
- USE_DOCKER=yes
- DATABASE_WAIT=yes
- DJANGO_SETTINGS_MODULE=settings.local
env_file:
- .env
volumes:
- ./backend:/app
ports:
- "${APP_PORT}:8000"
rproxy:
build:
context: ./compose/nginx
dockerfile: ./Dockerfile-dev
depends_on:
- backend
- frontend
env_file:
- .env
links:
- backend
- frontend
ports:
- "${WEB_PORT}:80"
frontend:
build: ./compose/assets
volumes:
- ./frontend:/app
- assets_bower_dev:/app/bower_components
- assets_node_dev:/app/node_modules
tmpfs:
- /app/tmp
env_file:
- .env
environment:
- API_HOST=http://localhost:${WEB_PORT}
- LIVERELOAD_PATH=assets/build/
command: /watch.sh