Dockerized for dev purposes
This commit is contained in:
45
docker-compose.yml
Normal file
45
docker-compose.yml
Normal 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:
|
||||
Reference in New Issue
Block a user