Skip to content

Commit 3acbf54

Browse files
committed
Making the docker compose more flexible.
Not force to create the containers with a name, with that is hard to have two wordpress environments because all the containers are the same.
1 parent aaaa33c commit 3acbf54

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

docker-compose.yml

-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ services:
44

55
wp_http_server:
66
image: nginx:1.13.3-alpine
7-
container_name: wp_http_server
87
restart: always
98
ports:
109
- "80:80"
@@ -25,7 +24,6 @@ services:
2524
# PHP_VERSION: 7.0
2625
# PHP_VERSION: 5.6
2726
user: ${UID}:www-data
28-
container_name: wp_server
2927
volumes:
3028
- ./www/wp_files/:/www
3129
- ./configs/php/uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
@@ -34,7 +32,6 @@ services:
3432

3533
wp_mariadb:
3634
image: mariadb
37-
container_name: wp_mariadb
3835
restart: always
3936
volumes:
4037
- ./www/wp_DB:/var/lib/mysql
@@ -43,7 +40,6 @@ services:
4340

4441
wp_phpmyadmin:
4542
image: phpmyadmin/phpmyadmin
46-
container_name: wp_phpmyadmin
4743
restart: always
4844
environment:
4945
- PMA_HOST=wp_mariadb

0 commit comments

Comments
 (0)