forked from common-voice/common-voice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
77 lines (76 loc) · 1.66 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
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',
]
bundler:
build:
context: ./bundler
dockerfile: Dockerfile
container_name: bundler
links:
- db
- redis
- storage
volumes:
- ./bundler:/home/node/code
networks:
- voice-web
ports:
- 9001:9001
command: bash -c "npm ci && npm run build && npm start"
web:
build:
context: .
dockerfile: docker/Dockerfile
container_name: web
links:
- db
- redis
- storage
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 storage:8080 -- /code/docker/prepare_storage.sh && yarn && yarn start"
networks:
voice-web: