34 lines
712 B
YAML
34 lines
712 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
mongo:
|
|
image: mongo:7
|
|
container_name: habitica-mongo
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ./data/mongodb:/data/db
|
|
networks:
|
|
- habitica
|
|
|
|
habitica:
|
|
image: habitrpg/habitica:latest # Andere image!
|
|
container_name: habitica-server
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3010:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- BASE_URL=http://10.1.80.6:3010
|
|
- MONGODB_URI=mongodb://mongo:27017/habitica
|
|
- SESSION_SECRET=changeme-random-secret-12345
|
|
- ADMIN_EMAIL=admin@localhost
|
|
- ADMIN_PASSWORD=admin123
|
|
depends_on:
|
|
- mongo
|
|
networks:
|
|
- habitica
|
|
|
|
networks:
|
|
habitica:
|
|
driver: bridge
|