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.

39 lines
733B

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