From fd491cae8c437858942bb670e94c00fc6ab962da Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Wed, 24 Nov 2021 20:49:27 +0100 Subject: [PATCH] Add docker-compose for dev --- docker-compose.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..6530a1a --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,36 @@ +version: '3.7' + +services: + + db: + restart: always + image: postgres:14.1 + shm_size: 256mb + healthcheck: + test: ["CMD", "pg_isready", "-U", "postgres"] + environment: + - POSTGRES_USER=realfan + - POSTGRES_PASSWORD=changemeNOW + - POSTGRES_DB=realfan + volumes: + - db:/var/lib/postgres/data + networks: + - dev + + web: + restart: always + image: php:8.0-apache + volumes: + - ./public:/var/www/html + - ./src:/src + networks: + - dev + ports: + - 8080:80 + +volumes: + db: + +networks: + dev: +