summaryrefslogtreecommitdiff
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-09-24 13:40:25 +0200
committerDaniel Weipert <code@drogueronin.de>2023-09-24 13:40:25 +0200
commitfa00b957378a393f8edbfc98ef111d35d18ecb09 (patch)
tree654e7dc5414f7f2795dbe996d3e1570793a5b1b8 /docker-compose.yml
initial commit
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..6d5f1c1
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,36 @@
+version: "3"
+
+services:
+ app:
+ build:
+ context: docker/php
+ volumes:
+ - "./:/var/www/html"
+
+ db:
+ image: postgres
+ restart: unless-stopped
+ environment:
+ - "POSTGRES_DB=${DB_NAME}"
+ - "POSTGRES_USER=${DB_USER}"
+ - "POSTGRES_PASSWORD=${DB_PASSWORD}"
+ volumes:
+ - "db:/var/lib/postgresql/data"
+
+ web:
+ build:
+ context: docker/nginx
+ ports:
+ - "8080:80"
+ volumes:
+ - "./:/var/www/html"
+
+ adminer:
+ image: adminer
+ ports:
+ - "8081:8080"
+ environment:
+ - "ADMINER_DEFAULT_SERVER=db"
+
+volumes:
+ db: