-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
55 lines (50 loc) · 1.12 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
version: '3.0'
services:
service:
build:
context: .
dockerfile: Dockerfile_service
command: '/app/docker/service/start-server.sh'
volumes:
- .:/app
ports:
- "3000:3000"
environment:
- DJANGO_ENV=${DJANGO_ENV} # if you want to run daphne, set 'production'
- REDIS_HOSTNAME=redis
- REDIS_DB_NUMBER=0
- REDIS_DB_PREFIX=local
- PYTHONUNBUFFERED=1
links:
- redis
- db
service_nginx:
build:
context: ./docker/service_nginx
command: '/start-nginx.sh'
ports:
- "8000:8000"
links:
- service
vuejs:
build:
context: .
dockerfile: Dockerfile_vuejs
command: '/app/docker/vuejs/start-watch.sh'
volumes:
- .:/app
#- ./application/static/assets:/app/application/vuejs/dist
- node-modules-volume:/app/application/vuejs/node_modules
redis:
image: redis:3.2.4-alpine
ports:
- "6379:6379"
db:
image: postgres
restart: always
environment:
POSTGRES_USER: docker
POSTGRES_PASSWORD: docker
POSTGRES_DB: kanban
volumes:
node-modules-volume: