dockerize the project with alpine
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user