From fa00b957378a393f8edbfc98ef111d35d18ecb09 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 24 Sep 2023 13:40:25 +0200 Subject: initial commit --- docker-compose.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docker-compose.yml (limited to 'docker-compose.yml') 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: -- cgit v1.2.3