mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 11:46:23 +00:00
Update the docker compose process (#9724)
Since the client side code and server side code run independently, the docker compose process needed to be updated to reflect this change. This fix included updating the docker-compose files' versions.
This commit is contained in:
parent
44ded25f6d
commit
2e580baf27
2 changed files with 45 additions and 15 deletions
|
|
@ -1,3 +1,10 @@
|
|||
web:
|
||||
volumes:
|
||||
- '.:/usr/src/habitrpg'
|
||||
version: "3"
|
||||
services:
|
||||
|
||||
client:
|
||||
volumes:
|
||||
- '.:/usr/src/habitrpg'
|
||||
|
||||
server:
|
||||
volumes:
|
||||
- '.:/usr/src/habitrpg'
|
||||
|
|
|
|||
|
|
@ -1,13 +1,36 @@
|
|||
web:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
links:
|
||||
- mongo
|
||||
environment:
|
||||
- NODE_DB_URI=mongodb://mongo/habitrpg
|
||||
version: "3"
|
||||
services:
|
||||
|
||||
mongo:
|
||||
image: mongo
|
||||
ports:
|
||||
- "27017:27017"
|
||||
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
|
||||
ports:
|
||||
- "27017:27017"
|
||||
networks:
|
||||
- habitica
|
||||
|
||||
networks:
|
||||
habitica:
|
||||
driver: bridge
|
||||
|
|
|
|||
Loading…
Reference in a new issue