-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
111 lines (101 loc) · 2.76 KB
/
docker-compose.yml
File metadata and controls
111 lines (101 loc) · 2.76 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
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
103
104
105
106
107
108
109
110
111
version: "2"
services:
elasticsearch:
image: "elasticsearch:1.5"
volumes:
- "./data/elasticsearch:/data"
ports:
- "9200:9200"
- "9300:9300"
php:
build: "./docker/php"
links:
- "db_website:db_website"
- "db_cache:db_cache"
- "db_connect:db_connect"
- "elasticsearch:search_engine"
ports:
- "9000:9000"
volumes:
- "./apps/website:/srv/http/website"
- "./apps/blog:/srv/http/blog"
- "./apps/work:/srv/http/work"
- "./apps/connect:/srv/http/connect"
- "./apps/cache:/srv/http/cache"
environment:
- "PHP_EXTRA_CONFIGURE_ARGS=--enable-fpm --with-fpm-user=1000 --with-fpm-group=1000 --enable-zip"
web:
image: "jwilder/nginx-proxy:latest"
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
- "./log/web:/var/log/nginx"
ports:
- "80:80"
db_website:
image: "orchardup/postgresql:9.3"
environment:
POSTGRESQL_USER: "didierio"
POSTGRESQL_PASS: "didierio"
POSTGRESQL_DB: "didierio"
volumes:
- "./data/db_website/postgresql:/var/lib/postgresql"
web_website:
image: "nginx:latest"
links:
- "php:webstack_php"
volumes:
- "./apps/website:/var/www"
- "./docker/web_website/nginx.conf:/nginx.conf"
- "./log/website:/var/log/nginx"
ports:
- "9001:9001"
command: "nginx -c /nginx.conf"
environment:
VIRTUAL_HOST: "www.dev.didier.io"
VIRTUAL_PORT: "9001"
web_connect:
image: "nginx:latest"
links:
- "php:webstack_php"
- "db_connect:db_connect"
volumes:
- "./apps/connect:/var/www"
- "./docker/web_connect/nginx.conf:/nginx.conf"
- "./log/connect:/var/log/nginx"
ports:
- "9002:9002"
command: "nginx -c /nginx.conf"
environment:
VIRTUAL_HOST: 'connect.dev.didier.io'
VIRTUAL_PORT: "9002"
db_cache:
image: "orchardup/postgresql:9.3"
environment:
POSTGRESQL_USER: "didierio_cache"
POSTGRESQL_PASS: "didierio_cache"
POSTGRESQL_DB: "didierio_cache"
volumes:
- "./data/db_cache/postgresql:/var/lib/postgresql"
db_connect:
image: "orchardup/postgresql:9.3"
environment:
POSTGRESQL_USER: "didierio_connect"
POSTGRESQL_PASS: "didierio_connect"
POSTGRESQL_DB: "didierio_connect"
volumes:
- "./data/db_connect/postgresql:/var/lib/postgresql"
web_cache:
image: "nginx:latest"
links:
- "php:webstack_php"
- "db_cache:db_cache"
volumes:
- "./apps/cache:/var/www"
- "./docker/web_cache/nginx.conf:/nginx.conf"
- "./log/cache/nginx:/var/log/nginx"
ports:
- "9003:9003"
command: "nginx -c /nginx.conf"
environment:
VIRTUAL_HOST: "cache.dev.didier.io"
VIRTUAL_PORT: "9003"