mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 14:03:10 +07:00
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
services:
|
|
teedy:
|
|
image: ghcr.io/victorphan03/teedy-custom:v1.0.5
|
|
container_name: teedy-custom
|
|
restart: always
|
|
ports:
|
|
- "8080:8080"
|
|
environment:
|
|
# URL cơ sở của bạn (ví dụ: http://localhost:8080)
|
|
- DOCS_BASE_URL=http://localhost:8080
|
|
# Tùy chỉnh bộ nhớ Java nếu cần
|
|
- JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Xmx1g
|
|
# Cấu hình kết nối cơ sở dữ liệu PostgreSQL
|
|
- DATABASE_URL=jdbc:postgresql://teedy-db:5432/teedy
|
|
- DATABASE_USER=teedy_db_user
|
|
- DATABASE_PASSWORD=teedy_db_password
|
|
- DATABASE_POOL_SIZE=10
|
|
volumes:
|
|
# Lưu trữ cơ sở dữ liệu và các file PDF tại đây
|
|
- ./teedy-data:/data
|
|
networks:
|
|
- docker-internal
|
|
- internet
|
|
depends_on:
|
|
- teedy-db
|
|
|
|
teedy-db:
|
|
image: postgres:13.1-alpine
|
|
container_name: teedy-db-postgres
|
|
restart: always
|
|
expose:
|
|
- 5432
|
|
environment:
|
|
- POSTGRES_USER=teedy_db_user
|
|
- POSTGRES_PASSWORD=teedy_db_password
|
|
- POSTGRES_DB=teedy
|
|
volumes:
|
|
- ./teedy-data/postgres:/var/lib/postgresql/data
|
|
networks:
|
|
- docker-internal
|
|
|
|
networks:
|
|
docker-internal:
|
|
driver: bridge
|
|
internal: true
|
|
internet:
|
|
driver: bridge
|
|
|
|
# Hướng dẫn chạy:
|
|
# 1. Thay YOUR_GITHUB_USERNAME bằng tên GitHub của bạn.
|
|
# 2. Chạy lệnh: docker-compose -f docker-compose-ghcr.yml up -d
|