Skip to content

Commit

Permalink
Merge pull request #1 from ajeetraina/main
Browse files Browse the repository at this point in the history
Modified Include and Profile
  • Loading branch information
ajeetraina authored Sep 20, 2023
2 parents 11f671c + 1c9cf36 commit 54408aa
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
File renamed without changes.
14 changes: 14 additions & 0 deletions wordpress/include/common-phpmyadmin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
platform: linux/amd64
links:
- db:mysql
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80

3 changes: 2 additions & 1 deletion wordpress/include/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

include:
- common-services.yaml
- common-dbservice.yaml
- common-phpmyadmin.yaml

services:

Expand Down
10 changes: 9 additions & 1 deletion wordpress/profile/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,22 @@ services:
depends_on:
- db
profiles: ["prod"]


phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
platform: linux/amd64
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80
profiles: ["dev"]

#supply db as hostname, wordpress as username and password

volumes:
db_data:
Expand Down

0 comments on commit 54408aa

Please sign in to comment.