forked from midas-research/audino
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
76 lines (71 loc) · 1.74 KB
/
docker-compose.dev.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
version: "3.7"
services:
backend:
platform: linux/amd64
image: python:3.7
command: ["bash", "/app/backend/scripts/run-dev.sh"]
volumes:
- ./backend:/app/backend
- ./backend/venv:/app/backend/venv
- backend_data:/root/uploads
environment:
ADMIN_USERNAME: "admin"
ADMIN_PASSWORD: "password"
DATABASE_URL: "mysql+pymysql://audino:audino@mysql/audino?charset=utf8mb4"
FLASK_APP: "app.py"
FLASK_DEBUG: 1
FLASK_ENV: "development"
JWT_SECRET_KEY: "secretkey"
JWT_REDIS_STORE_URL: "redis://:audino@redis:6379/0"
ports:
- 5001:5000
depends_on:
- mysql
- redis
networks:
- backend-network
- frontend-network
frontend:
platform: linux/amd64
image: node:14.18.1
command: ["bash", "/app/frontend/scripts/run-dev.sh"]
volumes:
- ./frontend:/app/frontend
- ./frontend/node_modules:/app/frontend/node_modules
stdin_open: true
ports:
- 3000:3000
depends_on:
- backend
networks:
- frontend-network
mysql:
platform: linux/amd64
image: mysql:5.7
volumes:
- ./mysql:/mysql
- mysql_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:
platform: linux/amd64
build: ./redis
volumes:
- redis_data:/data
environment:
REDIS_PASSWORD: "audino"
networks:
- backend-network
volumes:
mysql_data:
redis_data:
backend_data:
networks:
backend-network:
frontend-network: