forked from midas-research/audino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
53 lines (48 loc) · 1.04 KB
/
docker-compose.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
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: "password"
DATABASE_URL: "mysql+pymysql://audino:audino@mysql/audino?charset=utf8mb4"
JWT_SECRET_KEY: "secretkey"
JWT_REDIS_STORE_URL: "redis://redis:6379/0"
depends_on:
- mysql
- redis
networks:
- backend-network
- frontend-network
frontend:
build: ./frontend
ports:
- 8085:80
depends_on:
- backend
networks:
- frontend-network
mysql:
build: ./mysql
volumes:
- mysql_prod_data:/var/lib/mysql
environment:
MYSQL_DATABASE: "audino"
MYSQL_ROOT_PASSWORD: "root"
MYSQL_USER: "audino"
MYSQL_PASSWORD: "audino"
networks:
- backend-network
redis:
build: ./redis
networks:
- backend-network
volumes:
mysql_prod_data:
backend_data:
networks:
backend-network:
frontend-network: