-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
executable file
ยท100 lines (98 loc) ยท 2.19 KB
/
docker-compose.yaml
File metadata and controls
executable file
ยท100 lines (98 loc) ยท 2.19 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
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
version: "3.8"
networks:
db-net:
driver: bridge
services:
mysql:
container_name: mysql
image: mysql:latest
restart: always
ports:
- 3306:3306
networks:
- db-net
command:
- --default-authentication-plugin=mysql_native_password
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --range_optimizer_max_mem_size=16777216
environment:
MYSQL_DATABASE : radio
MYSQL_USER: visualradio
MYSQL_PASSWORD: visualradio
MYSQL_ROOT_PASSWORD: visualradio
volumes:
- "./db_setting/:/docker-entrypoint-initdb.d/"
visual-radio:
container_name: visual-radio
build: ./VisualRadio
# image: yenyeny1/visual-radio:0.1
restart: always
ports:
- 5001:5001
networks:
- db-net
volumes:
# - ./var/lib/volumes/docker/radio-vol/_data:/app
- ./VisualRadio:/app
depends_on:
- mysql
environment:
- TZ=Asia/Seoul
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
front:
container_name: front
build: ./front
ports:
- 3000:3000
networks:
- db-net
volumes:
# - ./var/lib/volumes/docker/radio-vol/_data:/app
- ./front:/app
- ./VisualRadio/radio_storage:/app/public/static/radio_storage
depends_on:
- visual-radio
environment:
- TZ=Asia/Seoul
nginx:
container_name: nginx
image: nginx:mainline-alpine3.18-slim
restart: always
ports:
- "80:80/tcp"
- "443:443"
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf
networks:
- db-net
environment:
- TZ=Asia/Seoul
depends_on:
- visual-radio
collector:
container_name: collector
build: ./Collector
restart: always
ports:
- 8080:8080
networks:
- db-net
volumes:
- ./Collector:/Collector
- ./VisualRadio/radio_storage:/Collector/radio_storage
depends_on:
- nginx
- visual-radio
environment:
- TZ=Asia/Seoul
# ์๋์ฐ ์ ์ฉ!
platform: linux/amd64
# ๋งฅ ์ ์ฉ!
# platform: linux/arm64/v8