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.

38 lines
705B

  1. services:
  2. web:
  3. build: ./web
  4. container_name: python
  5. expose:
  6. - 5000
  7. volumes:
  8. - ./web:/code
  9. env_file:
  10. - ./.env.prod
  11. depends_on:
  12. - db
  13. command: gunicorn --workers=3 --bind 0.0.0.0:5000 "app:create_app()"
  14. db:
  15. image: mariadb:latest
  16. container_name: mariadb
  17. restart: unless-stopped
  18. env_file:
  19. - ./.env.prod
  20. volumes:
  21. - dbdata:/var/lib/mysql
  22. command: '--default-authentication-plugin=mysql_native_password'
  23. nginx:
  24. image: nginx:latest
  25. container_name: nginx
  26. restart: unless-stopped
  27. ports:
  28. - "1337:80"
  29. volumes:
  30. - ./nginx-conf:/etc/nginx/conf.d
  31. depends_on:
  32. - web
  33. volumes:
  34. dbdata: