Create docker-compose.yml
This commit is contained in:
1 parent
5295e18941
commit
b4c70450b6
1 file changed
+31
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in new issue
Block a user