cleaner this way

This commit is contained in:
2024-11-26 10:34:40 -06:00
parent a48de1b0d4
commit e9c49a4713
10 changed files with 563 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
version: "3"
services:
client:
build: .
networks:
- habitica
environment:
- BASE_URL=http://server:3000
ports:
- "8080:8080"
command: ["npm", "run", "client:dev"]
depends_on:
- server
server:
build: .
ports:
- "3000:3000"
networks:
- habitica
environment:
- NODE_DB_URI=mongodb://mongo/habitrpg
depends_on:
- mongo
mongo:
image: mongo:3.6
ports:
- "27017:27017"
networks:
- habitica
networks:
habitica:
driver: bridge