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" restart: unless-stopped volumes: - pgdata:/var/lib/postgresql/data volumes: pgdata: driver: local