initial
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
services:
|
||||
jahresplanung:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
- PORT=3000
|
||||
- MONGODB_URI=mongodb://mongo:27017/jahresplanung
|
||||
depends_on:
|
||||
- mongo
|
||||
|
||||
mongo:
|
||||
image: mongo:7
|
||||
restart: unless-stopped
|
||||
# Kein "ports:" Eintrag: MongoDB ist nur innerhalb des Compose-Netzwerks
|
||||
# erreichbar (fuer den jahresplanung-Service), nicht von aussen.
|
||||
volumes:
|
||||
- jahresplanung-mongo-data:/data/db
|
||||
|
||||
volumes:
|
||||
jahresplanung-mongo-data:
|
||||
Reference in New Issue
Block a user