dockerize the project with alpine

This commit is contained in:
2025-04-28 11:24:51 +03:30
parent 363d76ff6d
commit 01fc779807
4 changed files with 94 additions and 0 deletions

28
docker-compose.yml Normal file
View File

@@ -0,0 +1,28 @@
services:
postgres:
image: postgres:17-alpine3.21
container_name: ${PROJECT_NAME}-pgsql
ports:
- "8090:5432"
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./data:/var/lib/postgresql/data
# redis:
# image: redis:7-alpine3.21
# container_name: redis
laravel:
build:
context: ${PROJECT_PATH}
dockerfile: Dockerfile
container_name: ${PROJECT_NAME}
ports:
- "8080:8000"
volumes:
- ./laravel:/var/www/${PROJECT_NAME}
depends_on:
- postgres