53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
services:
|
|
database:
|
|
image: postgres:latest
|
|
restart: unless-stopped
|
|
container_name: lakewatch-database
|
|
environment:
|
|
POSTGRES_USER: "${APP_DATABASE_USERNAME:-postgres}"
|
|
POSTGRES_PASSWORD: "${APP_DATABASE_PASSWORD:-password}"
|
|
POSTGRES_DB: "${APP_DATABASE_NAME:-lakewatch}"
|
|
ports:
|
|
- 5432:5432
|
|
volumes:
|
|
- lakewatch-database-data:/var/lib/postgresql/data
|
|
|
|
# api:
|
|
# build: ./LakeWatchAPI
|
|
# container_name: lakewatch-api
|
|
# links:
|
|
# - "database:db"
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - 8000:8000
|
|
# environment:
|
|
# APP_API_HOST: "0.0.0.0"
|
|
# APP_API_PORT: "8000"
|
|
# APP_DATABASE_HOST: "db"
|
|
# APP_DATABASE_PORT: "${APP_DATABASE_PORT:-5432}"
|
|
# APP_DATABASE_USERNAME: "${APP_DATABASE_USERNAME:-postgres}"
|
|
# APP_DATABASE_PASSWORD: "${APP_DATABASE_PASSWORD:-password}"
|
|
# APP_DATABASE_NAME: "${APP_DATABASE_NAME:-lakewatch}"
|
|
# APP_DATABASE_REQUIRE_SSL: false
|
|
#
|
|
# scraper:
|
|
# build: ./LakeWatchScraper/
|
|
# container_name: lakewatch-api
|
|
# links:
|
|
# - "database:db"
|
|
# restart: unless-stopped
|
|
# ports:
|
|
# - 8000:8000
|
|
# environment:
|
|
# APP_API_HOST: "0.0.0.0"
|
|
# APP_API_PORT: "8000"
|
|
# APP_DATABASE_HOST: "db"
|
|
# APP_DATABASE_PORT: "${APP_DATABASE_PORT:-5432}"
|
|
# APP_DATABASE_USERNAME: "${APP_DATABASE_USERNAME:-postgres}"
|
|
# APP_DATABASE_PASSWORD: "${APP_DATABASE_PASSWORD:-password}"
|
|
# APP_DATABASE_NAME: "${APP_DATABASE_NAME:-lakewatch}"
|
|
# APP_DATABASE_REQUIRE_SSL: false
|
|
|
|
volumes:
|
|
lakewatch-database-data:
|