Neur0toxine
2cd46585a8
All checks were successful
continuous-integration/drone/push Build is passing
34 lines
663 B
YAML
34 lines
663 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
|
|
DEBUG: true # Set to false to disable hot-reload & debugger.
|
|
ports:
|
|
- 3333:3333
|
|
- 40000:40000
|
|
command: make build run
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|