Skip to content

Commit 75953f6

Browse files
authored
Merge pull request #107 from alainseys/networks_v25.07.2021.00
Created new network
2 parents 8a5fe87 + 4d0a109 commit 75953f6

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

development/docker-compose.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ services:
1818
WORDPRESS_DB_PASSWORD: "${DB_ROOT_PASSWORD}"
1919
depends_on:
2020
- db
21-
22-
links:
23-
- db
24-
21+
networks:
22+
- backend
2523
wpcli:
2624
image: wordpress:cli
2725
container_name: cc-base-wp-cli
@@ -36,9 +34,8 @@ services:
3634
depends_on:
3735
- db
3836
- wp
39-
links:
40-
- db:db
41-
37+
networks:
38+
- backend
4239
pma:
4340
image: phpmyadmin/phpmyadmin
4441
container_name: cc-base-phpmyadmin
@@ -49,9 +46,8 @@ services:
4946
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
5047
ports:
5148
- ${IP}:8080:80
52-
links:
53-
- db:db
54-
49+
networks:
50+
- backend
5551
db:
5652
build:
5753
context: ./bin/${DATABASE} #change db if required in .env file
@@ -65,6 +61,8 @@ services:
6561
MYSQL_DATABASE: "${DB_NAME}"
6662
MYSQL_USER: root
6763
MYSQL_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
64+
networks:
65+
- backend
6866

6967
composer:
7068
image: composer/composer
@@ -79,3 +77,6 @@ services:
7977

8078
volumes:
8179
db_data:
80+
81+
networks:
82+
backend:

0 commit comments

Comments
 (0)