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: +