2024-05-07 21:49:09 +03:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: postgres:latest
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER: app
|
|
|
|
POSTGRES_PASSWORD: app
|
|
|
|
POSTGRES_DATABASE: app
|
|
|
|
ports:
|
|
|
|
- ${POSTGRES_ADDRESS:-127.0.0.1:5432}:${POSTGRES_PORT:-5432}
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
|
|
|
|
app:
|
|
|
|
image: "neur0toxine/golang-alpine:1.22"
|
|
|
|
working_dir: /app
|
|
|
|
user: ${UID:-1000}:${GID:-1000}
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
volumes:
|
|
|
|
- ./:/app
|
|
|
|
links:
|
|
|
|
- db
|
|
|
|
environment:
|
|
|
|
GOCACHE: /go
|
2024-05-14 14:44:41 +03:00
|
|
|
DEBUG: true # Set to false to disable hot-reload & debugger.
|
2024-05-07 21:49:09 +03:00
|
|
|
ports:
|
2024-05-10 11:46:43 +03:00
|
|
|
- 3333:3333
|
2024-05-14 14:44:41 +03:00
|
|
|
- 40000:40000
|
2024-05-07 21:49:09 +03:00
|
|
|
command: make build run
|
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|