forked from midas-research/audino
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.linux.prod.yml
73 lines (67 loc) · 1.52 KB
/
docker-compose.linux.prod.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
version: "3.7"
services:
backend:
build: ./backend
command: ["sh", "/app/backend/scripts/run-prod.sh"]
volumes:
- backend_data:/root/uploads
environment:
ADMIN_USERNAME: "admin"
ADMIN_PASSWORD: "whisper_admin_ninja"
DATABASE_URL: "mysql+pymysql://audino:audino@mysql/audino?charset=utf8mb4"
JWT_SECRET_KEY: "secretkey"
JWT_REDIS_STORE_URL: "redis://:audino@redis:6379/0"
depends_on:
- mysql
- redis
networks:
- backend-network
- frontend-network
frontend:
build: ./frontend
volumes:
- www:/app/frontend/build
nginx:
build: ./nginx
volumes:
- www:/var/www/html:ro
ports:
- 8080:80
depends_on:
- backend
networks:
- frontend-network
mysql:
image: mysql:5.7
volumes:
- ./mysql:/mysql
- mysql_prod_data:/var/lib/mysql
environment:
MYSQL_DATABASE: "audino"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_USER: "audino"
MYSQL_PASSWORD: "audino"
command: --init-file=/mysql/create_database.sql --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
networks:
- backend-network
redis:
build: ./redis
volumes:
- redis_data:/data
environment:
REDIS_PASSWORD: "audino"
networks:
- backend-network
volumes:
mysql_prod_data:
redis_data:
backend_data:
driver: local
driver_opts:
o: bind
type: none
device: /home/zawhtetaung/audino/uploads
www:
networks:
backend-network:
frontend-network: