-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocker_Nginx_Nginx-Proxy_Shipyard.yml
102 lines (89 loc) · 2.37 KB
/
Docker_Nginx_Nginx-Proxy_Shipyard.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '2'
# make sure you search for and replace the below settings
# /path/to/certs - search for the path to the certifications and replace with the correct path
# /path/to/nginx.tmpl - search for the path to nginx.tmpl and replace with the correct path
# $hotname=docker-2gb-nyc3-01
services:
#Nginx server
nginx:
image: nginx
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- /etc/nginx/conf.d
- /etc/nginx/vhost.d
- /usr/share/nginx/html
- /tmp/certs:/etc/nginx/certs:ro
#nginx-gen
#repository https://github.com/jwilder/docker-gen
nginx-gen:
image: jwilder/docker-gen
container_name: nginx-gen
volumes_from:
- nginx
volumes:
- /tmp/nginx.tmpl:/etc/docker-gen/templates/nginx.tmpl:ro
- /var/run/docker.sock:/tmp/docker.sock:ro
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
#nginx-proxy
#repository https://github.com/jwilder/nginx-proxy
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
volumes_from:
- nginx-gen
hello-world:
image: tutum/hello-world
container_name: hello-world
ports:
- "85:80"
environment:
- VIRTUAL_HOST=kodi.uorder.us
rethinkdb:
image: rethinkdb
container_name: shipyard-rethinkdb
ports:
- "8080"
- "28015"
- "29015"
shipyard-discovery:
image: microbox/etcd
container_name: shipyard-discovery
command: -name discovery
restart: always
ports:
- "4001:4001"
- "7001:7001"
shipyard-proxy:
image: shipyard/docker-proxy:latest
container_name: shipyard-proxy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: always
hostname: docker-2gb-nyc3-01
ports:
- "2375:2375"
swarm:
image: swarm:latest
container_name: swarm
command: m --host tcp://0.0.0.0:2375 proxy:2375
links:
- shipyard-proxy:proxy
ports:
- "2375"
shipyard-controller:
image: shipyard/shipyard:latest
container_name: shipyard-controller
restart: always
command: -D server --rethinkdb-addr rethinkdb:28015 -d tcp://swarm:2375
links:
- rethinkdb
- swarm
ports:
- "8080:8080"
environment:
- VIRTUAL_HOST=shipyd.uorder.us