2024-09-12 21:44:31 +03:00
|
|
|
version: '3.8'
|
|
|
|
services:
|
2024-09-12 22:10:17 +03:00
|
|
|
shortr:
|
2024-09-12 21:44:31 +03:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
2024-09-12 21:59:49 +03:00
|
|
|
restart: unless-stopped
|
|
|
|
command: ["/shortr", "--url", "app.4rkal.com"]
|
2024-12-23 16:31:53 +02:00
|
|
|
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"
|
2024-12-23 16:39:33 +02:00
|
|
|
restart: unless-stopped
|
2024-12-23 16:31:53 +02:00
|
|
|
volumes:
|
|
|
|
- pgdata:/var/lib/postgresql/data
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
pgdata:
|
2024-12-23 16:39:33 +02:00
|
|
|
driver: local
|