Files
habitica/docker-compose.dev.yml
Matteo Pagliazzi ec7ded042b docker: mongodb3.6
2019-10-18 16:52:21 +02:00

46 lines
828 B
YAML

version: "3"
services:
client:
build:
context: .
dockerfile: ./Dockerfile-Dev
command: ["npm", "run", "client:dev"]
depends_on:
- server
environment:
- BASE_URL=http://server:3000
image: habitica
networks:
- habitica
ports:
- "8080:8080"
volumes:
- .:/code
- /code/node_modules
server:
build:
context: .
dockerfile: ./Dockerfile-Dev
command: ["npm", "start"]
depends_on:
- mongo
environment:
- NODE_DB_URI=mongodb://mongo/habitrpg
image: habitica
networks:
- habitica
ports:
- "3000:3000"
volumes:
- .:/code
- /code/node_modules
mongo:
image: mongo:3.6
networks:
- habitica
ports:
- "27017:27017"
networks:
habitica:
driver: bridge