-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.02 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
golang:
build:
context: .
dockerfile: dockerfile
container_name: cdn-golang
restart: always
ports:
- "${APP_PORT}:${APP_PORT}"
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
- ./:/cdn
depends_on:
- minio
- redis
networks:
- cdn
minio:
image: minio/minio
container_name: cdn-minio
restart: always
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio:/var/lib/minio
environment:
MINIO_ROOT_USER: "${MINIO_ROOT_USER}"
MINIO_ROOT_PASSWORD: "${MINIO_ROOT_PASSWORD}"
command: server --console-address ":9001" /var/lib/minio
networks:
- cdn
redis:
image: redis:7.2-alpine
container_name: cdn-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
networks:
- cdn
networks:
cdn:
driver: bridge
volumes:
minio:
redis_data:
driver: local