initial commit
This commit is contained in:
parent
ebd5bb09fd
commit
3046604b64
26 changed files with 1535 additions and 82 deletions
|
|
@ -1,5 +1,5 @@
|
|||
services:
|
||||
go-mad-database:
|
||||
postgres:
|
||||
image: postgres:15-alpine
|
||||
container_name: go-mad-postgres
|
||||
environment:
|
||||
|
|
@ -20,15 +20,13 @@ services:
|
|||
dockerfile: Dockerfile
|
||||
container_name: go-mad
|
||||
depends_on:
|
||||
go-mad-database:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
extra_hosts:
|
||||
- "go-mad-database:host-gateway"
|
||||
environment:
|
||||
GO_MAD_DATABASE_URL: postgres://mad:mad@go-mad-database:5432/mad?sslmode=disable
|
||||
GO_MAD_DATABASE_URL: postgres://mad:mad@postgres:5432/mad?sslmode=disable
|
||||
GO_MAD_SERVER_PORT: "8080"
|
||||
GO_MAD_JWT_SECRET: change-me-to-a-32-plus-char-secret
|
||||
ports:
|
||||
- "8081:8080"
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
postgres_data:
|
||||
postgres_data:
|
||||
Loading…
Add table
Add a link
Reference in a new issue