mirror of
https://github.com/4rkal/shortr.git
synced 2025-01-19 15:03:38 +02:00
31 lines
665 B
YAML
31 lines
665 B
YAML
version: '3.8'
|
|
services:
|
|
shortr:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "8080:8080"
|
|
restart: unless-stopped
|
|
command: ["/shortr", "--url", "app.4rkal.com"]
|
|
environment:
|
|
DATABASE_URL: postgres://user:CKoA5cTWHVqBxaMz@postgres:5432/shortr?sslmode=disable
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:15
|
|
container_name: postgres_container
|
|
environment:
|
|
POSTGRES_USER: user
|
|
POSTGRES_PASSWORD: CKoA5cTWHVqBxaMz
|
|
POSTGRES_DB: shortr
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
|
volumes:
|
|
pgdata:
|