-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
45 lines (43 loc) · 1.31 KB
/
docker-compose.prod.yml
File metadata and controls
45 lines (43 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
services:
goshort-db:
image: postgres:17-alpine
container_name: goshort_db
environment:
POSTGRES_USER: goshort
POSTGRES_PASSWORD: goshort_password
POSTGRES_DB: goshort
volumes:
- ./postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U goshort -d goshort"]
interval: 10s
timeout: 5s
retries: 5
networks:
- goshort_net
goshort:
image: petrakisg/goshort:1.0.1
container_name: goshort_app
environment:
DATABASE_URL: postgres://goshort:goshort_password@goshort-db:5432/goshort?sslmode=disable
# Branding customization (uncomment and modify as needed)
# BRAND_TITLE: "MyShort - URL Shortener"
# BRAND_DESCRIPTION: "A fast and customizable URL shortener for your organization"
# BRAND_AUTHOR: "Your Company Name"
# BRAND_THEME_COLOR: "#2563eb"
# BRAND_LOGO_TEXT: "MyShort"
# BRAND_PRIMARY_COLOR: "#2563eb"
# BRAND_SECONDARY_COLOR: "#10b981"
# BRAND_HEADER_TITLE: "MyShort - Simplify Your URLs"
# BRAND_FOOTER_TEXT: "Powered by"
# BRAND_FOOTER_LINK: "https://yourcompany.com"
depends_on:
goshort-db:
condition: service_healthy
ports:
- 8081:80
networks:
- goshort_net
networks:
goshort_net:
external: true