You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1018 B

3 years ago
  1. version: "3.4"
  2. services:
  3. deb-rust:
  4. container_name: deb-rust
  5. restart: always
  6. build: ../build/deb-rust
  7. environment:
  8. - RUST_BACKTRACE=1
  9. - DATABASE_URL=mysql://rocket_user:rocket_pw@0.0.0.0:3306/rocket_db
  10. ports:
  11. - "5000:5000"
  12. networks:
  13. - rocket-db
  14. #depends_on:
  15. #- mariadb
  16. #links:
  17. #- "mariadb"
  18. #mariadb:
  19. #image: mariadb:latest
  20. #container_name: mariadb
  21. #hostname: mariadb
  22. #restart: always
  23. #volumes:
  24. #- "mariadb_vol:/var/lib/mysql"
  25. #ports:
  26. #- "3306:3306"
  27. #environment:
  28. #- MYSQL_ROOT_PASSWORD=password
  29. #- MYSQL_PASSWORD=rocket_pw
  30. #- MYSQL_DATABASE=rocket_db
  31. #- MYSQL_USER=rocket_user
  32. #networks:
  33. #- rocket-db
  34. networks:
  35. rocket-db:
  36. driver: bridge
  37. volumes:
  38. maria-data:
  39. driver: local
  40. mariadb_vol: