-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-dev.yml
More file actions
70 lines (65 loc) · 1.57 KB
/
Copy pathdocker-compose-dev.yml
File metadata and controls
70 lines (65 loc) · 1.57 KB
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
services:
downloader-server:
build:
context: .
dockerfile: downloader-server/Dockerfile.dev
ports:
- "3031:3031"
volumes:
- .:/workspace
- ./videos:/videos # Mount the videos directory to persist downloaded videos
working_dir: /workspace/downloader-server
command: go run .
web-frontend:
build:
context: ./web-app/frontend/
dockerfile: Dockerfile.dev
ports:
- "3034:3034"
volumes:
- ./web-app/frontend:/web-app/frontend
- /web-app/frontend/node_modules
environment:
- NODE_ENV=development
depends_on:
- web-backend
working_dir: /web-app/frontend
web-backend:
build:
context: .
dockerfile: web-app/backend/Dockerfile.dev
ports:
- "3033:3033"
volumes:
- .:/workspace
- ./videos:/videos # Mount the videos directory to persist downloaded videos
working_dir: /workspace/web-app/backend
command: go run .
message-queue:
build:
context: .
dockerfile: message-queue/Dockerfile.dev
ports:
- "3032:3032"
volumes:
- .:/workspace
working_dir: /workspace/message-queue
depends_on:
- downloader-server
command: go run .
mysql:
image: mysql:9.6.0
container_name: mysql-db
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1010
MYSQL_DATABASE: localcloud
MYSQL_USER: admin
MYSQL_PASSWORD: 1010
# ports:
# - "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
- ./mysql/init:/docker-entrypoint-initdb.d
volumes:
mysql_data: