docker-compose.yml 821 B

12345678910111213141516171819202122232425262728293031323334
  1. version: '3.8'
  2. # create dev.env with the following values:
  3. # OC_URL
  4. # OC_USER
  5. # OC_PASS
  6. # OC_PLUGIN_NAME
  7. services:
  8. console:
  9. build:
  10. context: ..
  11. dockerfile: .devcontainer/Dockerfile.console
  12. env_file: dev.env
  13. restart: unless-stopped
  14. healthcheck:
  15. test: oc whoami
  16. interval: 1m30s
  17. timeout: 10s
  18. retries: 5
  19. plugin:
  20. build:
  21. context: ..
  22. dockerfile: .devcontainer/Dockerfile.plugin
  23. env_file: dev.env
  24. depends_on:
  25. - console
  26. network_mode: service:console
  27. # Overrides default command so things don't shut down after the process ends.
  28. command: sleep infinity
  29. # Cache local workspace and copy shell history.
  30. volumes:
  31. - ..:/workspace:cached
  32. - ~/.bash_history:/root/.bash_history
  33. - ~/.zsh_history:/root/.zsh_history