-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
147 lines (136 loc) · 3.25 KB
/
docker-compose.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
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3'
services:
mysql:
image: mysql:8.0.33
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
ports:
- 3306:3306
tty: true
healthcheck:
test: mysqladmin ping -h 127.0.0.1 -u $$DB_USERNAME --password=$$DB_PASSWORD
phpMyAdmin:
image: phpmyadmin/phpmyadmin
ports:
- 8080:80
environment:
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 1024M
api:
build:
dockerfile: backend/api/Dockerfile
context: .
image: bishnudev/toia-api:latest
environment:
MIX_ENV: dev
NODE_ENV: development
depends_on:
mysql:
condition: service_healthy
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/api/health"]
tty: true
env_file:
- ./.env
volumes:
- ./backend/api/Accounts:/app/Accounts
- ./backend/api/lib:/app/lib
- /app/lib/toia_web/services/node_modules
- ./backend/translation/Transcripts:/app/priv/static/static/Transcripts:ro
ports:
- 4000:4000
# watchtower:
# image: containrrr/watchtower:latest
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# command: --interval 30
# nginx:
# build: ./nginx
# ports:
# - 4000:4000
# depends_on:
# - api
speech-to-text-gcloud:
build: ./backend/speech-to-text/gcloud
image: bishnudev/toia-stt:gcloud-v1.0
ports:
- 3002:3002
tty: true
env_file:
- ./.env
environment:
- NODE_ENV=production
volumes:
- ./secrets:/app/secrets:ro
q_api:
build: ./backend/q_api
image: bishnudev/toia-q-api:latest
ports:
- "5000:5000"
depends_on:
mysql:
condition: service_healthy
api:
condition: service_healthy
env_file:
- ./.env
tty: true
toia-dm:
build: ./backend/toia-dm
image: bishnudev/toia-dm:latest
ports:
- "5001:5001"
tty: true
depends_on:
mysql:
condition: service_healthy
api:
condition: service_healthy
environment:
- ENVIRONMENT=production
- PYTHONUNBUFFERED=1
- DM_PORT=5001
env_file:
- ./.env
rabbitmq3:
container_name: "rabbitmq"
image: rabbitmq:3.8-management-alpine
environment:
- RABBITMQ_DEFAULT_USER=${RMQ_USERNAME}
- RABBITMQ_DEFAULT_PASS=${RMQ_PASSWORD}
ports:
# AMQP protocol port
- '5672:5672'
# HTTP management UI
- '15672:15672'
translation:
depends_on:
- rabbitmq3
- mysql
restart: on-failure
container_name: "translation_py"
build: backend/translation
image: bishnudev/toia-translation:latest
environment:
- GOOGLE_APPLICATION_CREDENTIALS=secrets/toia-translation.json
- ENVIRONMENT=DEVELOPMENT
- PYTHONUNBUFFERED=1
volumes:
- ./backend/translation/Transcripts:/app/files
- ./secrets/translation:/app/secrets:ro
env_file:
- ./secrets/translation/.env
# portainer:
# image: portainer/portainer-ce:latest
# container_name: portainer
# restart: always
# ports:
# - 8000:8000
# - 9443:9443
# volumes:
# - /var/run/docker.sock:/var/run/docker.sock
# - portainer_data:/data
volumes:
portainer_data: