With Nginx and MongoDB
Last updated
Last updated
// ./docker-compose.yml
// if you want local mongodb
mongo:
...
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
// update local path to the .env file (see api/.env.example)
api:
...
env_file:
- .env.custom
// update local paths to certificate and key files
nginx:
...
volumes:
- /path/to/cert:/etc/nginx/ssl/cert
- /path/to/key:/etc/nginx/ssl/key
- ./nginx.prod.conf:/etc/nginx/nginx.confdocker-compose up -d