-
Notifications
You must be signed in to change notification settings - Fork 143
Expand file tree
/
Copy pathdocker-compose_no_swarm.yml
More file actions
46 lines (42 loc) · 905 Bytes
/
docker-compose_no_swarm.yml
File metadata and controls
46 lines (42 loc) · 905 Bytes
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
version: '2'
services:
blog:
# restart: always
image: gevin/octblog:0.4
# ports:
# - "8000:8000"
# - "5000:5000"
links:
- mongo:mongo
volumes:
- blog-static:/usr/src/app/static
env_file: .env
environment:
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=8000
mongo:
# restart: always
image: mongo:3.2
volumes:
- /Users/gevin/projects/data/mongodb:/data/db
# ports:
# - "27017:27017"
blog-static-nginx:
# restart: always
image: nginx:stable-alpine
# ports:
# - "8000:80"
volumes:
- blog-static:/usr/share/nginx/html/static:ro
environment:
- VIRTUAL_HOST=localhost
- VIRTUAL_PORT=80
nginx-proxy:
# restart: always
image: jwilder/nginx-proxy:alpine
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes:
blog-static: