build: add docker setup

This commit is contained in:
2025-12-24 17:05:14 -03:00
parent 6f419ece3d
commit a82adb90c2
2 changed files with 43 additions and 0 deletions

23
docker-compose.yml Normal file
View File

@@ -0,0 +1,23 @@
services:
go-app:
build: .
container_name: agenda-web-go
environment:
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_HOST=${DB_HOST}
- DB_PORT=${DB_PORT}
- ALLOWED_ORIGIN=${ALLOWED_ORIGIN}
networks:
- db-network
volumes:
#- ./cache:/root/.cache
- ./:/app
restart: unless-stopped
ports:
- 3005:8080
networks:
db-network:
external: true