pcm.output {
type hw
card <Your Output Device Name>
}
version: "2"
services:
flask:
build: ./docker/flask/
# restart: always
ports:
- "127.0.0.1:5000:5000"
volumes:
- ./backend/src:/code
links:
- "redis"
- "postgres"
depends_on:
- "redis"
- "postgres"
env_file:
- ./flask.env
environment:
- FLASK_APP=wsgi.py
entrypoint: gunicorn -w 1 -b 0.0.0.0:5000 --reload wsgi:app
# stdin_open: true
# tty: true
redis:
image: "redis:alpine"
volumes:
- db_redis:/data
postgres:
image: "postgres:alpine"
volumes:
- db_pg:/var/lib/postgresql/data
env_file:
- ./postgres.env
Ноут слабый.
в uwsgi.service
User=www-data
Group=www-data