mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
version: '3'
|
|
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: app/Dockerfile.dev
|
|
ports:
|
|
- 5173:5173
|
|
networks:
|
|
- internal
|
|
volumes:
|
|
- ./app/src:/app/src
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: server/Dockerfile.dev
|
|
networks:
|
|
- internal
|
|
- players
|
|
ports:
|
|
- '3000:3000'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./server/src:/app/src
|
|
- ./server/swagger.yaml:/app/swagger.yaml
|
|
- ./quests:/app/quests
|
|
environment:
|
|
- MONGO_URL=mongodb://db:27017/odyssey-test
|
|
- DOCKER_NETWORK=linux-odyssey-players
|
|
- HOST_PWD=${PWD}
|
|
db:
|
|
image: mongo
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- '27017:27017'
|
|
volumes:
|
|
- ./data:/data/db
|
|
|
|
swagger:
|
|
image: swaggerapi/swagger-editor:latest
|
|
ports:
|
|
- 8080:8080
|
|
volumes:
|
|
- ./server/swagger.yaml:/tmp/swagger.yaml
|
|
environment:
|
|
- SWAGGER_FILE=/tmp/swagger.yaml
|
|
|
|
helloworld:
|
|
image: lancatlin/linux-odyssey:helloworld
|
|
build:
|
|
context: .
|
|
dockerfile: quests/helloworld/Dockerfile
|
|
|
|
networks:
|
|
internal:
|
|
players:
|
|
name: linux-odyssey-players
|