32 lines
632 B
YAML
32 lines
632 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: habitica/habitica:latest
|
|
container_name: habitica-server
|
|
restart: unless-stopped
|
|
ports:
|
|
- "3010:3000"
|
|
environment:
|
|
- NODE_ENV=production
|
|
- BASE_URL=http://10.1.80.6:3010
|
|
- SESSION_SECRET=changeme-random-secret-here-12345
|
|
- MONGODB_URI=mongodb://mongo:27017/habitica
|
|
depends_on:
|
|
- mongo
|
|
networks:
|
|
- habitica
|
|
|
|
networks:
|
|
habitica:
|
|
driver: bridge
|