mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 05:53:12 +07:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
services:
|
|
# Teedy Application
|
|
teedy-server:
|
|
image: sismics/docs:v1.10
|
|
restart: unless-stopped
|
|
ports:
|
|
# Map internal port to host
|
|
- 8080:8080
|
|
environment:
|
|
# Base url to be used
|
|
DOCS_BASE_URL: "https://docs.example.com"
|
|
# Set the admin email
|
|
DOCS_ADMIN_EMAIL_INIT: "admin@example.com"
|
|
# Set the admin password (in this example: "superSecure")
|
|
DOCS_ADMIN_PASSWORD_INIT: "$$2a$$05$$PcMNUbJvsk7QHFSfEIDaIOjk1VI9/E7IPjTKx.jkjPxkx2EOKSoPS"
|
|
# Setup the database connection
|
|
DATABASE_URL: "jdbc:postgresql://teedy-db:5432/teedy"
|
|
DATABASE_USER: "teedy_db_user"
|
|
DATABASE_PASSWORD: "teedy_db_password"
|
|
DATABASE_POOL_SIZE: "10"
|
|
volumes:
|
|
- ./docs/data:/data
|
|
- ./docs-web/target/docs-web-1.12-SNAPSHOT.war:/app/webapps/docs.war
|
|
networks:
|
|
- docker-internal
|
|
- internet
|
|
depends_on:
|
|
- teedy-db
|
|
|
|
# DB for Teedy
|
|
teedy-db:
|
|
image: postgres:13.1-alpine
|
|
restart: unless-stopped
|
|
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:
|
|
# Network without internet access. The db does not need
|
|
# access to the host network.
|
|
docker-internal:
|
|
driver: bridge
|
|
internal: true
|
|
internet:
|
|
driver: bridge
|