Edited: docker-compose - added profiles for dev and prod

This commit is contained in:
Filip Rojek 2024-12-27 13:38:50 +01:00
parent 147e3b1499
commit 59246decd7

View File

@ -6,6 +6,7 @@ services:
MARIADB_ROOT_PASSWORD: root
ports:
- 3306:3306
profiles: ["prod", "dev"]
phpmyadmin:
image: phpmyadmin
@ -14,6 +15,7 @@ services:
- 8080:80
environment:
- PMA_ARBITRARY=1
profiles: ["dev"]
habittracker:
build:
@ -25,3 +27,4 @@ services:
- 8000:80
depends_on:
- mariadb
profiles: ["prod"]