-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.sample
52 lines (51 loc) · 1.04 KB
/
docker-compose.yml.sample
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
version: '3'
services:
msc2021:
build: .
user: root
restart: always
ports:
- "127.0.0.1:8080:8080"
volumes:
- .data/msc/logs:/var/log/msc
- .:/opt/msc:ro
- /tmp:/tmp
depends_on:
- database
networks:
default:
internal:
adminer:
image: adminer
restart: always
networks:
default:
internal:
ports:
- "127.0.0.1:8002:8080"
volumes:
- /tmp:/tmp
database:
image: mariadb:10.6.4
restart: always
environment:
- MYSQL_ROOT_PASSWORD=msc-root-sample-password
- MYSQL_USER=msc
- MYSQL_PASSWORD=msc-sample-password
- MYSQL_DATABASE=msc
volumes:
- .data/mysql:/var/lib/mysql
networks:
internal:
command: [ mysqld, --character-set-server=utf8mb4, --collation-server=utf8mb4_unicode_ci, --wait_timeout=28800, --log-warnings=0 ]
cache:
image: redis:5
restart: always
volumes:
- .data/redis:/data
networks:
internal:
networks:
default:
internal:
internal: true