This repository has been archived on 2024-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
golang-rest-example/docker-compose.yaml

22 lines
393 B
YAML
Raw Normal View History

2024-02-01 22:09:09 +00:00
version: "3.9"
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
app:
build:
dockerfile: Dockerfile
context: .
target: dev
args:
- GO_VERSION=${GO_VERSION}
ports:
- 1234:1234
volumes:
- .:/app
environment:
- DATABASE_URL=postgresql://postgres:example@db:5432/postgres