mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
21 lines
374 B
YAML
21 lines
374 B
YAML
version: '3'
|
|
services:
|
|
app:
|
|
image: lancatlin/linux-odyssey
|
|
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
|