Files
finance/docker-compose.yml
T
Ümit Tunç 725fb50e03 Update Docker configuration and comment out Laravel migration commands
- Updated the Docker Compose file to specify the latest image tag for the application.
- Commented out the Laravel migration commands in the Dockerfile to prevent automatic migrations during container build, enhancing control over the deployment process.
- These changes improve the Docker setup and provide better management of the Laravel application lifecycle.
2025-01-21 09:35:27 +03:00

45 lines
891 B
YAML

version: '3'
services:
app:
build:
context: .
dockerfile: dockerfile
image: truncgil-finance-app:latest
container_name: truncgil-finance-app
volumes:
- .:/var/www
networks:
- laravel-network
web:
image: nginx:alpine
container_name: truncgil-finance-web
ports:
- "8081:80"
volumes:
- .:/var/www
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- laravel-network
db:
image: mysql:8.0
container_name: truncgil-finance-db
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: truncgil_finance
MYSQL_USER: truncgil_finance
MYSQL_PASSWORD: "QWEFaca123++"
volumes:
- db_data:/var/lib/mysql
networks:
- laravel-network
ports:
- "3307:3306"
networks:
laravel-network:
volumes:
db_data: