Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. @NgModule({
  2. declarations: [ ... ],
  3. imports: [
  4. SomeModule.forRoot({ apiKey1: "needs to be externalized" }),
  5. AnotherModule.forRoot({ apiKey2: "needs to also be externalized" })
  6. ],
  7. providers: [ ... ],
  8. bootstrap: [AppComponent]
  9. })
  10. export class AppModule { }
  11.  
  12. docker run -e API_KEY_1='somekey' -e API_KEY_2='anotherkey' -p 80:80 my-container:production
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement