Dockerized for dev purposes
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled

This commit is contained in:
2025-11-04 19:25:30 +10:00
parent ca4569cb8f
commit c0618ce3e4
7 changed files with 790 additions and 674 deletions

45
docker-compose.yml Normal file
View File

@@ -0,0 +1,45 @@
services:
php:
build:
context: .
dockerfile: docker/php/Dockerfile
container_name: dredge-tours-php
volumes:
- .:/var/www/html
ports:
- "5173:5173"
networks:
- dredge-tours
nginx:
image: nginx:1.27
container_name: dredge-tours-nginx
ports:
- "8080:80"
volumes:
- .:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
networks:
- dredge-tours
postgres:
image: postgres:16
container_name: dredge-tours-postgres
environment:
POSTGRES_USER: dredge
POSTGRES_PASSWORD: dredge123
POSTGRES_DB: dredge_tours
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- dredge-tours
networks:
dredge-tours:
volumes:
pgdata: