forked from segler-alex/radiobrowser-api-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (40 loc) · 901 Bytes
/
docker-compose.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
version: "3.0"
services:
api:
build: ./
image: segleralex/radiobrowser-api-rust:0.7.24
deploy:
replicas: 1
networks:
- mynet
ports:
- 8080:8080
environment:
- DATABASE_URL=mysql://radiouser:password@dbserver/radio
- CACHETYPE=redis
- CACHETTL=60sec
- CACHEURL=redis://cacheserver:6379
- HOST=0.0.0.0
cacheserver:
image: redis
networks:
- mynet
dbserver:
image: mariadb:10.4
deploy:
replicas: 1
environment:
- MYSQL_ROOT_PASSWORD=12345678
- MYSQL_USER=radiouser
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=radio
networks:
- mynet
volumes:
- ./dbdata:/var/lib/mysql
command: ["mysqld","--character-set-server=utf8mb4","--collation-server=utf8mb4_unicode_ci"]
networks:
mynet:
driver: "overlay"
driver_opts:
encrypted: ""