Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reiallenramos/04407f5860c88326cee3785a8528ffe9 to your computer and use it in GitHub Desktop.
Save reiallenramos/04407f5860c88326cee3785a8528ffe9 to your computer and use it in GitHub Desktop.
docker-compose for nuxtjs-otp-boilterplate Lightsail instance
version: "3"
services:
app:
image: reiallenramos/nuxtjs-otp-boilerplate:latest
depends_on:
- redis
- mongo
ports:
- "80:3000"
environment:
- NODE_ENV=development
- JWT_SECRET=thiscouldbeanything
- REDIS_OTP_URI=redis://redis:6379
- DEFAULT_OTP=123123
- OTP_DURATION=300
- MONGO_URI=mongodb://root:example@mongo:27017
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=example
- HOST=0.0.0.0
redis:
image: redis:5.0.3-alpine
ports:
- "6379:6379"
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- "27017:27017"
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment