1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-18 20:59:42 +02:00

add docker-compose.yml for production use

This commit is contained in:
Nikita Melnikov 2022-11-07 08:12:15 -03:00
parent 90c68d6077
commit 2e11b0049b
2 changed files with 24 additions and 14 deletions

22
docker-compose.dev.yml Normal file
View file

@ -0,0 +1,22 @@
version: "3.2"
services:
docs:
build:
dockerfile: docker/Dockerfile.prod
context: .
ports:
- "3000:3000"
volumes:
- ./uploads:/usr/src/app/uploads
- ./db:/usr/src/app/db
- ./docs-config.yaml:/usr/src/app/docs-config.yaml
- ./docs-config.local.yaml:/usr/src/app/docs-config.local.yaml
mongodb:
image: mongo:6.0.1
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
volumes:
mongodb_data: