-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (66 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (66 loc) · 1.27 KB
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
69
70
71
72
73
74
web: &web
image: vespapp/vespapp-web
environment:
- "DB_HOST=db"
- "DB_PORT=5432"
- "DB_PASSWORD=supersecret"
- "DB_USER=vespapp-web"
- "DB_NAME=vespapp-web"
volumes:
- ".:/opt/app/"
links:
- "db"
gunicorn:
<<: *web
entrypoint: ["gunicorn"]
expose: ["8888"]
volumes:
- ".:/opt/app"
command:
- "vespapp.wsgi:application"
- "-w"
- "4"
- "--bind"
- "0.0.0.0:8888"
dev:
<<: *web
command: ["runserver", "0.0.0.0:8000"]
ports:
- "80:8000"
nginx:
image: "nginx:1.9"
volumes:
- "./dockerfile_nginx/nginx.conf:/etc/nginx/nginx.conf"
volumes_from:
- "gunicorn"
links:
- "gunicorn"
volumes_from:
- "gunicorn:rw"
ports:
- "80:80"
node: &node
image: "node:5.8"
working_dir: "/opt/node"
volumes:
- ".:/opt/node"
entrypoint: ["node"]
npm:
<<: *node
entrypoint: ["npm"]
bower:
<<: *node
entrypoint: ["node", "node_modules/bower/bin/bower", "--allow-root"]
gulp:
<<: *node
entrypoint: ["node", "node_modules/gulp/bin/gulp.js"]
db:
image: "postgres:9.5.1"
expose:
- "5432"
volumes:
- "/opt/vespapp_web/postgresql:/var/lib/postgresql/data"
environment:
- "POSTGRES_PASSWORD=supersecret"
- "POSTGRES_USER=vespapp-web"
- "POSTGRES_DB=vespapp-web"