Files
finance/docker-compose.yml
T
Ümit Tunç 6ddf932bea Update docker-compose configuration for improved service management
- Added 'restart: always' policy to the app and web services to ensure they restart automatically on failure.
- Changed network names from 'laravel-network' to 'app-network' for better clarity and consistency.
- Updated the network configuration to use a bridge driver for improved networking capabilities.

These changes enhance the reliability and organization of the Docker setup for the Truncgil Finance application.
2025-04-22 10:15:39 +03:00

48 lines
931 B
YAML

version: '3'
services:
app:
build:
context: .
dockerfile: dockerfile
image: truncgil-finance-app:latest
container_name: truncgil-finance-app
restart: always
volumes:
- .:/var/www
networks:
- app-network
web:
image: nginx:alpine
container_name: truncgil-finance-web
restart: always
ports:
- "8081:80"
volumes:
- .:/var/www
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- app-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:
- app-network
ports:
- "3307:3306"
networks:
app-network:
driver: bridge
volumes:
db_data: