ProjectLighthouse/docker-compose.yml
Josh 017dcd6888
Make PhotoSubjects use a one to many relationship (#687)
* Attempt to remodel PhotoSubject and Photo relationship

* Fix migration name

* Use exactName for migration lock

* Revert "Use exactName for migration lock"

This reverts commit 76cee6a3ff.

* Set command timeout to 5 minutes for database migrations

* Delete unused PhotoSubjects in migration

* Clean up website queries and finalize subject refactor

* Add migration to remove PhotoSubjectCollection

* Add grace period for container startup and optimize startup

* Make config backup copy original file

* Allow docker entrypoint to fix data permissions
2023-02-24 04:20:55 +00:00

89 lines
No EOL
2.1 KiB
YAML

version: '3.4'
volumes:
database:
redis:
services:
gameserver:
image: lighthouse:latest
container_name: gameserver
build: .
restart: unless-stopped
ports:
- "10061:10061"
environment:
SERVER: GameServer
healthcheck:
test: wget --spider -t1 -nv http://localhost:10061/LITTLEBIGPLANETPS3_XML/status || exit 1
timeout: 10s
retries: 5
start_period: 60s
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
volumes:
- "./data:/lighthouse/data:z"
- "./data/.aspnet:/lighthouse/.aspnet:z"
website:
image: lighthouse:latest
container_name: website
restart: unless-stopped
ports:
- "10060:10060"
environment:
SERVER: Website
healthcheck:
test: wget --spider -t1 -nv http://localhost:10060/status || exit 1
timeout: 10s
retries: 5
start_period: 60s
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
volumes:
- "./data:/lighthouse/data:z"
- "./data/.aspnet:/lighthouse/.aspnet:z"
api:
image: lighthouse:latest
container_name: api
restart: unless-stopped
ports:
- "10062:10062"
environment:
SERVER: API
healthcheck:
test: wget --spider -t1 -nv http://localhost:10062/api/v1/status || exit 1
timeout: 10s
retries: 5
start_period: 60s
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
volumes:
- "./data:/lighthouse/data:z"
- "./data/.aspnet:/lighthouse/.aspnet:z"
db:
image: mariadb
container_name: db
restart: unless-stopped
environment:
MARIADB_ROOT_PASSWORD: lighthouse
MARIADB_DATABASE: lighthouse
healthcheck:
test: "/usr/bin/mysql --user=root --password=lighthouse --execute \"SHOW DATABASES;\""
timeout: 10s
interval: 5s
retries: 5
volumes:
- "database:/var/lib/mysql"
redis:
image: redis/redis-stack-server
container_name: redis
restart: unless-stopped
volumes:
- "redis:/var/lib/redis"