docker-compose.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. services:
  2. cert-gen:
  3. image: ras-certgen:latest
  4. volumes:
  5. - ./certs:/work/certs
  6. working_dir: /work/certs
  7. entrypoint: [ "/bin/sh", "-c" ]
  8. environment:
  9. - OSCAR_HOST=${OSCAR_HOST}
  10. command:
  11. - "openssl req -x509 -newkey rsa:1024
  12. -keyout key.pem
  13. -out cert.pem
  14. -sha256 -days 365 -nodes
  15. -subj \"/CN=${OSCAR_HOST}\"
  16. && cat cert.pem key.pem > server.pem
  17. && rm cert.pem key.pem"
  18. nss-gen:
  19. image: ras-certgen:latest
  20. volumes:
  21. - ./certs:/work/certs
  22. working_dir: /work/certs
  23. entrypoint: [ "/bin/sh", "-c" ]
  24. command:
  25. - "rm -rf nss
  26. && mkdir -p nss
  27. && certutil -N -d nss --empty-password
  28. && certutil -A -n \"RAS\" -t \"CT,,C\" -i server.pem -d nss"
  29. open-oscar-server:
  30. image: ras:latest
  31. ports:
  32. - "5190:5190"
  33. - "8080:8080"
  34. - "9898:9898"
  35. - "1088:1088"
  36. - "4000:4000/udp"
  37. env_file:
  38. - ./config/ssl/settings.env
  39. volumes:
  40. - .:/project
  41. working_dir: /project
  42. stunnel:
  43. image: ras-stunnel:5.75-openssl-1.0.2u
  44. ports:
  45. - "443:443"
  46. - "5193:5193"
  47. volumes:
  48. - ./config/ssl/stunnel.conf:/etc/stunnel/stunnel.conf:ro
  49. - ./certs:/etc/stunnel/certs:ro
  50. command: stunnel.conf