Skip to content
This repository was archived by the owner on Dec 3, 2022. It is now read-only.

Commit 113cc56

Browse files
committed
use compose file version 3
1 parent a2d1447 commit 113cc56

12 files changed

+44
-140
lines changed

large/docker-compose.override.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
# The setting is for the development environment.
33
# @see https://docs.docker.com/compose/extends/
44

5-
version: '2'
5+
version: '3'
66

77
services:
8-
datastore:
9-
image: busybox
10-
volumes:
11-
# put your drupal source code and mount as volume.
12-
- ./volumes/drupal:/var/www/html
13-
# take care that container_name must be unique in the docker engine.
14-
#container_name: drupal_datastore
15-
168
db:
179
volumes:
1810
# override mysql config if necessary.
@@ -32,12 +24,9 @@ services:
3224
#container_name: drupal_db
3325

3426
php:
35-
volumes_from:
36-
- datastore
3727
volumes:
38-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
39-
# See also: https://github.com/docker/for-mac/issues/77
40-
# - drupal_source:/var/www/html:rw
28+
# put your drupal source code and mount as volume.
29+
- ./volumes/drupal:/var/www/html:cached
4130
# allocate large memory_limit for drush.
4231
- ./php/php/php.ini:/usr/local/etc/php/php.ini
4332
# override php-fpm config to use xdebug with port 9000.
@@ -49,12 +38,9 @@ services:
4938
#container_name: drupal_php
5039

5140
web:
52-
volumes_from:
53-
- datastore
5441
volumes:
55-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
56-
# See also: https://github.com/docker/for-mac/issues/77
57-
# - drupal_source:/var/www/html:rw
42+
# put your drupal source code and mount as volume.
43+
- ./volumes/drupal:/var/www/html:cached
5844
# override nginx config to execute drupal through the php container.
5945
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
6046
ports:
@@ -66,7 +52,3 @@ services:
6652
ports:
6753
- "8025:8025"
6854
#container_name: drupal_mailhog
69-
70-
#volumes:
71-
# drupal_source:
72-
# external: true

large/docker-compose.production.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
version: '2'
1+
version: '3'
22

33
services:
4-
datastore:
5-
image: drupal_datastore_prod
6-
build: .
7-
volumes:
8-
- /var/www/html
9-
104
db:
115
image: drupal_db_prod
126
build: ./mysql
@@ -19,13 +13,13 @@ services:
1913
php:
2014
image: drupal_php_prod
2115
build: ./php
22-
volumes_from:
23-
- datastore
16+
volumes:
17+
- ./volumes/drupal:/var/www/html:cached
2418

2519
web:
2620
image: drupal_web_prod
2721
build: ./nginx
28-
volumes_from:
29-
- datastore
22+
volumes:
23+
- ./volumes/drupal:/var/www/html:cached
3024
ports:
3125
- "80:80"

large/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22

33
services:
44
db:

micro/docker-compose.override.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
# The setting is for the development environment.
33
# @see https://docs.docker.com/compose/extends/
44

5-
version: '2'
5+
version: '3'
66

77
services:
8-
datastore:
9-
image: busybox
10-
volumes:
11-
# put your drupal source code and mount as volume.
12-
- ./volumes/drupal:/var/www/html
13-
# take care that container_name must be unique in the docker engine.
14-
#container_name: drupal_datastore
15-
168
db:
179
volumes:
1810
# override mysql config if necessary.
@@ -32,12 +24,9 @@ services:
3224
#container_name: drupal_db
3325

3426
php:
35-
volumes_from:
36-
- datastore
3727
volumes:
38-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
39-
# See also: https://github.com/docker/for-mac/issues/77
40-
# - drupal_source:/var/www/html:rw
28+
# put your drupal source code and mount as volume.
29+
- ./volumes/drupal:/var/www/html:cached
4130
# allocate large memory_limit for drush.
4231
- ./php/php/php.ini:/usr/local/etc/php/php.ini
4332
# override php-fpm config to use xdebug with port 9000.
@@ -49,12 +38,9 @@ services:
4938
#container_name: drupal_php
5039

5140
web:
52-
volumes_from:
53-
- datastore
5441
volumes:
55-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
56-
# See also: https://github.com/docker/for-mac/issues/77
57-
# - drupal_source:/var/www/html:rw
42+
# put your drupal source code and mount as volume.
43+
- ./volumes/drupal:/var/www/html:cached
5844
# override nginx config to execute drupal through the php container.
5945
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
6046
ports:
@@ -66,7 +52,3 @@ services:
6652
ports:
6753
- "8025:8025"
6854
#container_name: drupal_mailhog
69-
70-
#volumes:
71-
# drupal_source:
72-
# external: true

micro/docker-compose.production.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
version: '2'
1+
version: '3'
22

33
services:
4-
datastore:
5-
image: drupal_datastore_prod
6-
build: .
7-
volumes:
8-
- /var/www/html
9-
104
db:
115
image: drupal_db_prod
126
build: ./mysql
@@ -19,13 +13,13 @@ services:
1913
php:
2014
image: drupal_php_prod
2115
build: ./php
22-
volumes_from:
23-
- datastore
16+
volumes:
17+
- ./volumes/drupal:/var/www/html:cached
2418

2519
web:
2620
image: drupal_web_prod
2721
build: ./nginx
28-
volumes_from:
29-
- datastore
22+
volumes:
23+
- ./volumes/drupal:/var/www/html:cached
3024
ports:
3125
- "80:80"

micro/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22

33
services:
44
db:

small/docker-compose.override.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
# The setting is for the development environment.
33
# @see https://docs.docker.com/compose/extends/
44

5-
version: '2'
5+
version: '3'
66

77
services:
8-
datastore:
9-
image: busybox
10-
volumes:
11-
# put your drupal source code and mount as volume.
12-
- ./volumes/drupal:/var/www/html
13-
# take care that container_name must be unique in the docker engine.
14-
#container_name: drupal_datastore
15-
168
db:
179
volumes:
1810
# override mysql config if necessary.
@@ -32,12 +24,9 @@ services:
3224
#container_name: drupal_db
3325

3426
php:
35-
volumes_from:
36-
- datastore
3727
volumes:
38-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
39-
# See also: https://github.com/docker/for-mac/issues/77
40-
# - drupal_source:/var/www/html:rw
28+
# put your drupal source code and mount as volume.
29+
- ./volumes/drupal:/var/www/html:cached
4130
# allocate large memory_limit for drush.
4231
- ./php/php/php.ini:/usr/local/etc/php/php.ini
4332
# override php-fpm config to use xdebug with port 9000.
@@ -49,12 +38,9 @@ services:
4938
#container_name: drupal_php
5039

5140
web:
52-
volumes_from:
53-
- datastore
5441
volumes:
55-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
56-
# See also: https://github.com/docker/for-mac/issues/77
57-
# - drupal_source:/var/www/html:rw
42+
# put your drupal source code and mount as volume.
43+
- ./volumes/drupal:/var/www/html:cached
5844
# override nginx config to execute drupal through the php container.
5945
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
6046
ports:
@@ -66,7 +52,3 @@ services:
6652
ports:
6753
- "8025:8025"
6854
#container_name: drupal_mailhog
69-
70-
#volumes:
71-
# drupal_source:
72-
# external: true

small/docker-compose.production.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
version: '2'
1+
version: '3'
22

33
services:
4-
datastore:
5-
image: drupal_datastore_prod
6-
build: .
7-
volumes:
8-
- /var/www/html
9-
104
db:
115
image: drupal_db_prod
126
build: ./mysql
@@ -19,13 +13,13 @@ services:
1913
php:
2014
image: drupal_php_prod
2115
build: ./php
22-
volumes_from:
23-
- datastore
16+
volumes:
17+
- ./volumes/drupal:/var/www/html:cached
2418

2519
web:
2620
image: drupal_web_prod
2721
build: ./nginx
28-
volumes_from:
29-
- datastore
22+
volumes:
23+
- ./volumes/drupal:/var/www/html:cached
3024
ports:
3125
- "80:80"

small/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22

33
services:
44
db:

xlarge/docker-compose.override.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,9 @@
22
# The setting is for the development environment.
33
# @see https://docs.docker.com/compose/extends/
44

5-
version: '2'
5+
version: '3'
66

77
services:
8-
datastore:
9-
image: busybox
10-
volumes:
11-
# put your drupal source code and mount as volume.
12-
- ./volumes/drupal:/var/www/html
13-
# take care that container_name must be unique in the docker engine.
14-
#container_name: drupal_datastore
15-
168
db:
179
volumes:
1810
# override mysql config if necessary.
@@ -32,12 +24,9 @@ services:
3224
#container_name: drupal_db
3325

3426
php:
35-
volumes_from:
36-
- datastore
3727
volumes:
38-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
39-
# See also: https://github.com/docker/for-mac/issues/77
40-
# - drupal_source:/var/www/html:rw
28+
# put your drupal source code and mount as volume.
29+
- ./volumes/drupal:/var/www/html:cached
4130
# allocate large memory_limit for drush.
4231
- ./php/php/php.ini:/usr/local/etc/php/php.ini
4332
# override php-fpm config to use xdebug with port 9000.
@@ -49,12 +38,9 @@ services:
4938
#container_name: drupal_php
5039

5140
web:
52-
volumes_from:
53-
- datastore
5441
volumes:
55-
# Replace volume to this to use docker-sync for mac OS users to resolve performance issue.
56-
# See also: https://github.com/docker/for-mac/issues/77
57-
# - drupal_source:/var/www/html:rw
42+
# put your drupal source code and mount as volume.
43+
- ./volumes/drupal:/var/www/html:cached
5844
# override nginx config to execute drupal through the php container.
5945
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
6046
ports:
@@ -66,7 +52,3 @@ services:
6652
ports:
6753
- "8025:8025"
6854
#container_name: drupal_mailhog
69-
70-
#volumes:
71-
# drupal_source:
72-
# external: true

xlarge/docker-compose.production.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
version: '2'
1+
version: '3'
22

33
services:
4-
datastore:
5-
image: drupal_datastore_prod
6-
build: .
7-
volumes:
8-
- /var/www/html
9-
104
db:
115
image: drupal_db_prod
126
build: ./mysql
@@ -19,13 +13,13 @@ services:
1913
php:
2014
image: drupal_php_prod
2115
build: ./php
22-
volumes_from:
23-
- datastore
16+
volumes:
17+
- ./volumes/drupal:/var/www/html:cached
2418

2519
web:
2620
image: drupal_web_prod
2721
build: ./nginx
28-
volumes_from:
29-
- datastore
22+
volumes:
23+
- ./volumes/drupal:/var/www/html:cached
3024
ports:
3125
- "80:80"

xlarge/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: '2'
1+
version: '3'
22

33
services:
44
db:

0 commit comments

Comments
 (0)