Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # See https://stackoverflow.com/questions/56459243/docker-compose-build-time-args-from-file
- networks:
- default:
- driver: bridge
- services:
- saas-api:
- build:
- args:
- LOG_LEVEL: notice
- NODE_ENV: development
- PORT: '8000'
- context: /home/pedro/src/opensource/saas-boilerplate/api
- command: yarn start
- container_name: saas-api
- depends_on:
- - saas-mongo
- environment:
- AMAZON_ACCESSKEYID: xxxxxx
- AMAZON_SECRETACCESSKEY: xxxxxx
- COOKIE_DOMAIN: .saas.localhost
- EMAIL_SUPPORT_FROM_ADDRESS: [email protected]
- GOOGLE_CLIENTID: xxxxxx
- GOOGLE_CLIENTSECRET: xxxxxx
- MAILCHIMP_API_KEY: xxxxxx
- MAILCHIMP_REGION: xxxx
- MAILCHIMP_SAAS_ALL_LIST_ID: xxxxxx
- MONGO_URL: mongodb://saas:secret@saas-mongo:27017/saas
- NODE_ENV: development
- SESSION_NAME: saas.sid
- SESSION_SECRET: xxxxxx
- STRIPE_LIVE_ENDPOINTSECRET: whsec_xxxxxx
- STRIPE_LIVE_PLANID: plan_xxxxxx
- STRIPE_LIVE_PUBLISHABLEKEY: pk_live_xxxxxx
- STRIPE_LIVE_SECRETKEY: sk_live_xxxxxx
- STRIPE_TEST_PLANID: plan_xxxxxx
- STRIPE_TEST_PUBLISHABLEKEY: pk_test_xxxxxx
- STRIPE_TEST_SECRETKEY: sk_test_xxxxxx
- URL_API: http://api.saas.localhost:8000
- URL_APP: http://app.saas.localhost:3000
- image: saas-api:dev
- networks:
- default:
- aliases:
- - api.saas.localhost
- ports:
- - published: 8000
- target: 8000
- saas-app:
- build:
- args:
- LOG_LEVEL: notice
- NODE_ENV: development
- PORT: '3000'
- context: /home/pedro/src/opensource/saas-boilerplate/app
- command: yarn start
- container_name: saas-app
- depends_on:
- - saas-api
- environment:
- BUCKET_FOR_POSTS: xxxxxx
- BUCKET_FOR_TEAM_AVATARS: xxxxxx
- GA_TRACKING_ID: ''
- LAMBDA_API_ENDPOINT: xxxxxxapi
- NODE_ENV: development
- STRIPEPUBLISHABLEKEY: pk_test_xxxxxxxxxxxxxxx
- URL_API: http://api.saas.localhost:8000
- URL_APP: http://app.saas.localhost:3000
- image: saas-app:dev
- networks:
- default:
- aliases:
- - app.saas.localhost
- ports:
- - published: 3000
- target: 3000
- saas-mongo:
- container_name: saas-mongo
- environment:
- MONGO_INITDB_DATABASE: saas
- MONGO_INITDB_ROOT_PASSWORD: supersecret
- MONGO_INITDB_ROOT_USERNAME: root
- MONGO_NON_ROOT_PASSWORD: secret
- MONGO_NON_ROOT_USERNAME: saas
- image: mongo
- ports:
- - published: 27017
- target: 27017
- volumes:
- - /home/pedro/src/opensource/saas-boilerplate/mongo-user.sh:/docker-entrypoint-initdb.d/mongo-user.sh:ro
- - /tmp/saas-db:/data/db:rw
- saas-mongoexp:
- container_name: saas-mongoexp
- depends_on:
- - saas-mongo
- environment:
- ME_CONFIG_MONGODB_ADMINPASSWORD: supersecret
- ME_CONFIG_MONGODB_ADMINUSERNAME: root
- ME_CONFIG_MONGODB_SERVER: saas-mongo
- image: mongo-express
- ports:
- - published: 8081
- target: 8081
- version: '3.7'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement