forked from common-voice/common-voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (49 loc) · 1.32 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
50
version: '3'
services:
db:
image: mysql:5.7.41
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"
ports:
- 3306:3306
redis:
image: redis:alpine
container_name: redis
restart: unless-stopped
networks:
- voice-web
storage:
image: fsouza/fake-gcs-server
container_name: storage
ports:
- 8080:8080
networks:
- voice-web
command: ["-scheme", "http", "-port", "8080", "-external-url", "http://storage:8080", "-backend", "filesystem"]
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 && /code/docker/wait-for-it.sh storage:8080 -- /code/docker/prepare_storage.sh && yarn && yarn start"
networks:
voice-web: