I can deploy the platform perfectly using docker compose. The clips are saved in the s3proxy(bucket) but when I go to listen to them, they don’t play. The phrases come out but the audio does not play.
I have transferred the audio clips from the container to my computer and they are heard
I don’t know what is going on
Here is the docker compose:
version: '3'
services:
db:
image: mysql:5.7.28
networks:
- voice-web
container_name: db
ports:
- 3306:3306
restart: unless-stopped
environment:
- MYSQL_DATABASE=pruebavoz
- MYSQL_USER=voicecommons
- MYSQL_PASSWORD=voicecommons
- MYSQL_ROOT_PASSWORD=voicewebroot
command: mysqld --sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
redis:
image: redis:alpine
container_name: redis
restart: unless-stopped
networks:
- voice-web
s3proxy:
image: andrewgaul/s3proxy
container_name: s3proxy
ports:
- 9001:80
networks:
- voice-web
environment:
- S3PROXY_AUTHORIZATION=none
web:
build:
context: .
dockerfile: docker/Dockerfile
container_name: web
links:
- db
- redis
volumes:
- .:/code
environment:
- DOTENV_CONFIG_PATH=/code/.env-local-docker
networks:
- voice-web
ports:
- 9000:9000
command: bash -c "/code/docker/wait-for-it.sh s3proxy:80 -- /code/docker/prepare_s3.sh && yarn && yarn start"
networks:
voice-web:
And this is my .env-local-docker
{
“SERVER_PORT”: 9000,
“DB_ROOT_USER”: “root”,
“DB_ROOT_PASS”: “voicewebroot”,
“MYSQLUSER”: “voicecommons”,
“MYSQLPASS”: “voicecommons”,
“MYSQLDBNAME”: “pruebavoz”,
“MYSQLHOST”: “db”,
“MYSQLPORT”: 3306,
“CLIP_BUCKET_NAME”: “common-voice-clips”,
“S3_CONFIG”: {“endpoint”: “http://s3proxy:80”, “accessKeyId”: “local-identity”, “secretAccessKey”: “local-credential”, “s3ForcePathStyle”: true},
“IMPORT_SENTENCES”: true,
“PROD”: false
}