Files
finance/docker-compose.yml
T
Ümit Tunç 3e10131f81 Refactor Docker setup and update API documentation
- Renamed Dockerfile to lowercase for consistency and clarity.
- Introduced a new Dockerfile for the Laravel application, utilizing PHP 8.2 and installing necessary dependencies, including NTP for time synchronization.
- Removed the docker-entrypoint.sh script, which previously generated API documentation, streamlining the container startup process.
- Updated API documentation with new response formats and example values for `currencyName` and `goldName`, enhancing clarity and usability.
- Adjusted endpoint responses to reflect the latest currency and gold rates, ensuring accurate data delivery.

These changes improve the Docker environment and enhance the API's documentation and response accuracy, contributing to a more robust application setup.
2025-01-21 09:28:15 +03:00

44 lines
871 B
YAML

services:
app:
build:
context: .
dockerfile: dockerfile
image: truncgil-finance-app
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: