Files
finance/docker-compose.yml
Ümit Tunç 747043d616 Update Docker Compose configuration for service port changes
- Changed the web service port mapping from 8088 to 8089 to avoid conflicts.
- Updated the database service port mapping from 3307 to 3308 for better alignment with application requirements.

These changes improve the accessibility and organization of the Docker setup for the Truncgil Finance application.
2025-10-25 17:10:02 -03:00

48 lines
931 B
YAML
Executable File

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:
- "8089: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:
- "3308:3306"
networks:
app-network:
driver: bridge
volumes:
db_data: