Browse Source

feat: compose

Signed-off-by: QuentinN42 <quentin@lieumont.fr>
master
QuentinN42 4 months ago
parent
commit
21161d1a2c
Signed by: number42 GPG Key ID: 2CD7D563712B3A50
  1. 2
      .env
  2. 16
      docker-compose.yml

2
.env

@ -0,0 +1,2 @@
USER=root
PASS=supersecretpassword

16
docker-compose.yml

@ -0,0 +1,16 @@
---
services:
app:
build: .
ports:
- "8080:8080"
environment:
MONGO_URL: mongodb://${USER}:${PASS}@mongo:27017/
mongo:
image: mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${USER}
MONGO_INITDB_ROOT_PASSWORD: ${PASS}
volumes:
- ./data:/data/db
Loading…
Cancel
Save