-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.sample
More file actions
118 lines (108 loc) · 2.9 KB
/
docker-compose.yml.sample
File metadata and controls
118 lines (108 loc) · 2.9 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
112
113
114
115
116
117
118
version: '2'
services:
### Nginx proxy container that will handle multiple application request ###
nginx-proxy:
image: jwilder/nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
docker-webserver:
ipv4_address: 11.12.222.1
############## Custom applications : Start ##########################
laravel56-apache:
build:
context: ./apache-php7-laravel
container_name: laravel56-apache
working_dir: /var/www/html
volumes:
- /Volumes/Workspace/laravel56:/var/www/html
environment:
- VIRTUAL_HOST=laravel56.local.com
extra_hosts:
- "legacy-php55-project.local.com:11.12.10.102"
networks:
docker-webserver:
ipv4_address: 11.12.10.101
legacy-php55-project:
build:
context: ./apache-php55-legacy
container_name: legacy-php55-project
working_dir: /var/www
volumes:
- /Volumes/Workspace/legacy-php55-project:/var/www
- /Volumes/Workspace/legacy-php55-project/dev.htaccess:/var/www/.htaccess
environment:
- VIRTUAL_HOST=legacy-php55-project.local.com
networks:
docker-webserver:
ipv4_address: 11.12.10.102
drupal8:
build:
context: ./apache-php7-drupal8
container_name: drupal8
working_dir: /var/www/html
volumes:
- /Volumes/Workspace/drupal8:/var/www/html
environment:
- VIRTUAL_HOST=drupal8.local.com
networks:
docker-webserver:
ipv4_address: 11.12.10.103
############## Custom applications : End ##########################
### Databases Data Container ####
data:
build: ./data
container_name: database_data
volumes:
- /opt/data/mysql:/var/lib/mysql
- /opt/data/memcached:/var/lib/memcached
- /opt/data/postgres:/var/lib/postgres
### MySQL Container ###
mysql:
build: ./mysql
container_name: mysql_common
volumes_from:
- data
ports:
- "3306:3306"
environment:
MYSQL_USER: docker
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: root
networks:
docker-webserver:
ipv4_address: 11.12.100.1
### Beanstalkd Container ###
beanstalkd:
build: ./beanstalkd
container_name: beanstalkd
ports:
- "11300:11300"
privileged: true
### Beanstalkd Console Container ###
beanstalkd-console:
build: ./beanstalkd-console
container_name: beanstalkd-console
ports:
- "2080:2080"
links:
- beanstalkd
### PostgreSQL Container ###
postgres:
build: ./postgres
container_name: postgres
volumes_from:
- data
ports:
- "5432:5432"
environment:
POSTGRES_DB: docker
POSTGRES_USER: docker
POSTGRES_PASSWORD: secret
networks:
docker-webserver:
ipam:
config:
- subnet: 11.12.0.0/16