mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 03:20:13 +08:00
33 lines
607 B
YAML
33 lines
607 B
YAML
version: '3'
|
|
services:
|
|
app:
|
|
restart: on-failure
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dev
|
|
networks:
|
|
- internal
|
|
- players
|
|
ports:
|
|
- '3000:3000'
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./server:/app/server
|
|
environment:
|
|
- MONGO_URL=mongodb://db:27017/odyssey-test
|
|
- DOCKER_NETWORK=linux-odyssey-players
|
|
db:
|
|
image: mongo
|
|
restart: always
|
|
networks:
|
|
- internal
|
|
ports:
|
|
- '27017:27017'
|
|
volumes:
|
|
- ./data:/data/db
|
|
|
|
networks:
|
|
internal:
|
|
players:
|
|
name: linux-odyssey-players
|