-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
55 lines (54 loc) · 1.19 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
services:
rikka:
build:
context: .
dockerfile: Dockerfile.dev
working_dir: /go/src/ictsc-rikka
command: air -c .air.toml
ports:
- ${RIKKA_PORT}:8080
volumes:
- .:/go/src/ictsc-rikka:cached
- .local/pkg:/go/pkg:cached
restart: always
depends_on:
- mariadb
- redis
- minio
mariadb:
image: mariadb:10.5.10
ports:
- ${MARIADB_PORT}:3306
volumes:
- mariadb:/var/lib/mysql
environment:
LANG: C.UTF-8
MYSQL_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MYSQL_DATABASE: ${MARIADB_DATABASE}
MYSQL_USER: ${MARIADB_USERNAME}
MYSQL_PASSWORD: ${MARIADB_PASSWORD}
MYSQL_INITDB_CHARSET: utf8mb4
restart: always
redis:
image: redis:6.2.4
ports:
- 127.0.0.1:${REDIS_PORT}:6379
restart: always
minio:
image: minio/minio:RELEASE.2023-07-21T21-12-44Z
ports:
- ${MINIO_PORT}:9000
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
volumes:
- minio:/data
command: server /data
restart: always
volumes:
mariadb:
driver: local
go-pkg:
driver: local
minio:
driver: local