32 lines
576 B
YAML
32 lines
576 B
YAML
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
|
|
ports:
|
|
- 3333:3333
|
|
command: make build run
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|