Last active
November 6, 2020 07:14
-
-
Save saroar/05dd41b20568a3b0cd69b596efaa3fa7 to your computer and use it in GitHub Desktop.
Common docker-compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
x-shared_environment: &shared_environment | |
LOG_LEVEL: ${LOG_LEVEL:-debug} | |
JWKS: '{}' | |
MONGO_DB_PRO: "mongodb://mongo:27017/addameapi" | |
EVENTS_URL: "http://realIP:9090" | |
CHATS_URL: "http://realIP:6060" | |
AUTH_URL: "http://realIP:3030" | |
TWILIO_ACCOUNT_ID: "id" | |
TWILIO_ACCOUNT_SECRET: "secret" | |
SENDER_NUMBER: "twilio_number" | |
APNS_CERTIFICATE_KEY: "" | |
KEY_IDENTIFIER: "" | |
TEAM_IDENTIFIER: "" | |
APNS_TOPIC: "" | |
services: | |
mongo: | |
image: mongo:4.4.1 | |
volumes: | |
- ~/mongoDBData:/data/db | |
networks: | |
- production_gateway | |
restart: always | |
chat: | |
image: addamespb/chat_engine:latest | |
build: | |
context: chatEngine | |
environment: | |
<<: *shared_environment | |
ports: | |
- '6060:6060' | |
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "6060"] | |
volumes: | |
- ~/chatEngine:/chat_data | |
depends_on: | |
- mongo | |
networks: | |
- production_gateway | |
links: | |
- mongo | |
restart: always | |
event: | |
image: addamespb/event_engine:latest | |
build: | |
context: eventEngine | |
environment: | |
<<: *shared_environment | |
ports: | |
- '9090:9090' | |
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "9090"] | |
volumes: | |
- ~/eventEngine:/event_data | |
depends_on: | |
- mongo | |
networks: | |
- production_gateway | |
links: | |
- mongo | |
restart: always | |
auth: | |
image: addamespb/addame_auth:latest | |
build: | |
context: addameAuth | |
environment: | |
<<: *shared_environment | |
ports: | |
- '3030:3030' | |
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "3030"] | |
volumes: | |
- ~/addameAuth:/auth_data | |
depends_on: | |
- mongo | |
networks: | |
- production_gateway | |
links: | |
- mongo | |
restart: always | |
api_gateway: | |
image: addamespb/addaapi_gateway:latest | |
build: | |
context: addameapiGateway | |
environment: | |
<<: *shared_environment | |
ports: | |
- '80:8080' | |
- '443:8080' | |
command: ["serve", "--env", "production", "--hostname", "0.0.0.0", "--port", "8080"] | |
volumes: | |
- ~/addameapiGateway:/gateway_data | |
depends_on: | |
- mongo | |
networks: | |
- production_gateway | |
links: | |
- mongo | |
restart: always | |
networks: | |
production_gateway: | |
name: Default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment