summaryrefslogtreecommitdiff
path: root/compose.dev.yml
diff options
context:
space:
mode:
authorJonas Kohl2024-09-19 19:33:12 +0200
committerJonas Kohl2024-09-19 19:33:12 +0200
commit2fbe9ad343e82679ba0573a7daa510cfbe488ddf (patch)
tree9b84737a765e510c87193f93aa8a34fea37e3298 /compose.dev.yml
parent75e9b62da57eb7ce3f9e8a8667a7de59188c221f (diff)
Docker dev and prod separation
Diffstat (limited to 'compose.dev.yml')
-rw-r--r--compose.dev.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/compose.dev.yml b/compose.dev.yml
new file mode 100644
index 0000000..4028ddc
--- /dev/null
+++ b/compose.dev.yml
@@ -0,0 +1,18 @@
+services:
+ app:
+ build:
+ context: ./
+ target: dev
+ restart: unless-stopped
+ volumes:
+ - "./src/:/var/www/html/:ro"
+ admin:
+ image: dpage/pgadmin4:latest
+ restart: unless-stopped
+ depends_on:
+ - db
+ ports:
+ - 127.0.0.1:8314:80
+ environment:
+ PGADMIN_DEFAULT_EMAIL: '${PGADMIN_EMAIL}'
+ PGADMIN_DEFAULT_PASSWORD: '${PGADMIN_PASSWORD}'