2023-05-04 17:16:56 +02:00
|
|
|
services:
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
POSTGRES_PASSWORD: example
|
|
|
|
POSTGRES_USER: go-urlsh
|
2023-05-05 15:16:54 +02:00
|
|
|
POSTGRES_DB: go-urlsh
|
|
|
|
volumes:
|
|
|
|
- ./postgres-data:/var/lib/postgresql/data
|
|
|
|
go-urlsh:
|
|
|
|
image: codeberg.org/lauralani/go-urlsh:0.1
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 127.0.0.1:3000:3000
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
|
|
|
# format: postgresql://<username>:<password>@<database_ip>/<database>
|
|
|
|
DATABASE_URL: postgres://
|
|
|
|
|