docker-compose.yml 906 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. version: "3.7"
  2. services:
  3. db:
  4. image: mysql
  5. ports:
  6. - 0.0.0.0:3306:3306
  7. expose:
  8. - 3306
  9. command: --default-authentication-plugin=mysql_native_password
  10. environment:
  11. MYSQL_ROOT_PASSWORD: walle
  12. MYSQL_DATABASE: walle
  13. volumes:
  14. - /data/walle/mysql:/var/lib/mysql
  15. networks:
  16. - walle-net
  17. restart: always
  18. adminer:
  19. image: adminer
  20. ports:
  21. - 8888:8080
  22. networks:
  23. - walle-net
  24. restart: always
  25. web:
  26. build: ./
  27. depends_on:
  28. - db
  29. expose:
  30. - 5000
  31. environment:
  32. - WALLE_SECRET="guess me out"
  33. networks:
  34. - walle-net
  35. restart: always
  36. gateway:
  37. image: nginx
  38. ports:
  39. - 0.0.0.0:80:80
  40. volumes:
  41. - ./fe/:/data/web/:ro
  42. - ./gateway/nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
  43. networks:
  44. walle-net:
  45. restart: always
  46. networks:
  47. walle-net: ~