ghostforge/docker-compose.yml

35 lines
977 B
YAML
Raw Normal View History

version: '3.8'
services:
ghostforge-db:
image: postgres:15.3
container_name: ghostforge-db
restart: unless-stopped
volumes:
- ghostforge-db-data:/var/lib/postgresql/data
2023-05-25 18:33:08 -07:00
ports: [ "5432:5432" ]
env_file: [ .env ]
ghostforge:
build:
context: .
dockerfile: Dockerfile
2023-05-25 18:33:08 -07:00
args:
- GHOSTFORGE_ENV=${GHOSTFORGE_ENV}
- GHOSTFORGE_DATA_DIR=${GHOSTFORGE_DATA_DIR}
- GHOSTFORGE_JWT_SECRET=${GHOSTFORGE_JWT_SECRET}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- GHOSTFORGE_INTERNAL_WEB_PORT=${GHOSTFORGE_INTERNAL_WEB_PORT}
ports:
[
"${GHOSTFORGE_HOST_WEB_PORT}:${GHOSTFORGE_INTERNAL_WEB_PORT}"
]
image: ghostforge:latest
container_name: ghostforge
restart: unless-stopped
2023-05-25 18:33:08 -07:00
depends_on: [ ghostforge-db ]
env_file: [ .env ]
volumes:
- ./migrations/versions:/ghostforge/migrations/versions
volumes:
ghostforge-db-data:
name: ghostforge-db-data