forked from common-voice/common-voice
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
49 lines (48 loc) · 1.15 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3'
services:
db:
image: mysql:5.7.28
networks:
- voice-web
container_name: db
restart: unless-stopped
environment:
- MYSQL_DATABASE=voiceweb
- 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: