Files
romm/examples/docker-compose.example.yml
Georges-Antoine Assi 6bcadec702 everything we need for 3.0
2024-02-01 18:13:16 -05:00

54 lines
1.7 KiB
YAML

version: "3"
volumes:
mysql_data:
services:
romm:
image: zurdi15/romm:latest
container_name: romm
environment:
- ROMM_HOST=https://localhost:3000 # Your host ip or domain name (including http(s)://, subdomain and port if needed)
- DB_HOST=romm_db
- DB_PORT=3306
- DB_USER=romm-user
- DB_NAME=romm # Should match the MYSQL_DATABASE value in the mariadb container
- DB_PASSWD=<database password>
- IGDB_CLIENT_ID=<IGDB client id>
- IGDB_CLIENT_SECRET=<IGDB client secret>
- ROMM_AUTH_SECRET_KEY=<secret key> # Generate a key with `openssl rand -hex 32`
- ROMM_AUTH_USERNAME=admin
- ROMM_AUTH_PASSWORD=<admin password> # default: admin
- REDIS_HOST=redis
- REDIS_PORT=6379
volumes:
- "/path/to/library:/romm/library"
- "/path/to/assets:/romm/assets" # Path where saves, states and other assets are stored
- "/path/to/resources:/romm/resources" # Path where roms metadata (covers) are stored
- "/path/to/config:/romm/config" # [Optional] Path where config.yml is stored
- "/path/to/logs:/romm/logs" # [Optional] Path where logs are stored
ports:
- 80:8080
depends_on:
- romm_db
restart: "unless-stopped"
romm_db:
image: mariadb:latest
container_name: romm_db
environment:
- MYSQL_ROOT_PASSWORD=<root password>
- MYSQL_DATABASE=romm
- MYSQL_USER=romm-user
- MYSQL_PASSWORD=<database password>
volumes:
- mysql_data:/var/lib/mysql
ports:
- 3306:3306
restart: "unless-stopped"
redis:
image: redis:alpine
container_name: redis
restart: unless-stopped
ports:
- 6379:6379