-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.ci.yml
49 lines (46 loc) · 1008 Bytes
/
docker-compose.ci.yml
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.8'
services:
sut:
privileged: true
container_name: bot
build:
context: ./
dockerfile: Dockerfile.test
image: ghcr.io/yey007/transcriberbot:latest
command: sh -c "./wait-for db:3306 -- npm test"
environment:
- DISCORD_TOKEN
- WATSON_SPEECH_API_KEY
- WATSON_SPEECH_URL
- MYSQL_ROOT_PASSWORD
- MYSQL_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- DISCORD_TEST_TOKEN
- TESTING_CHANNEL_ID
- TESTING_VOICE_CHANNEL_ID
- TESTING_PREFIX
- NODE_ENV=testing
depends_on:
- db
networks:
- my_network
tty: true
db:
container_name: db
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
expose:
- 3306
networks:
- my_network
networks:
my_network:
name: my_network
driver: bridge