Files
linux-odyssey/docker-compose.yml
T
2023-07-21 11:27:01 +08:00

21 lines
381 B
YAML

version: '3'
services:
app:
image: lancatlin/linux-odyssey-server
build: .
ports:
- '3000:3000'
links:
- db
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- MONGO_URL=mongodb://db:27017/odyssey-test
db:
image: mongo
restart: always
ports:
- '27017:27017'
volumes:
- ./data:/data/db