-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.template.yml
72 lines (69 loc) · 1.71 KB
/
docker-compose.template.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.7'
services:
storage:
image: nkonev/blog-storage:latest
deploy:
replicas: 2
update_config:
parallelism: 1
delay: 20s
labels:
- traefik.enable=true
- traefik.backend=blog-storage
- traefik.frontend.rule=PathPrefix:/;Host:storage.nkonev.name
- traefik.port=1234
- traefik.docker.network=proxy_backend
ports:
- 1234:1234
logging:
driver: "json-file"
# options:
# tag: mongo
networks:
- traefik_backend
- backend
volumes:
- /host/etc/config.yml:/etc/config.yml
command: ["-config=/etc/config.yml", "-mongo=true", "-minio=true"]
mongo:
image: mongo:4.2.0-bionic
hostname: mongo
# ports:
# - 27017:27017
volumes:
- mongo_prod_blog_storage_data_dir:/data/db
- ./docker/mongo/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
logging:
driver: "json-file"
# options:
# tag: mongo
networks:
- backend
command: ["--replSet", "rs0"]
minio:
image: minio/minio:RELEASE.2019-01-31T00-31-19Z
hostname: minio
# ports:
# - 9000:9000
environment:
- MINIO_ACCESS_KEY=AKIAIOSFODNN7EXAMPLE
- MINIO_SECRET_KEY=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY
volumes:
# multipart temp store on disk (/tmp is in mem in host centos)
- /var/tmp/blog-storage:/tmp
- /mnt/minio/data:/data
command: ["server", "/data"]
logging:
driver: "json-file"
# options:
# tag: minio
networks:
- backend
volumes:
mongo_prod_blog_storage_data_dir:
networks:
backend:
driver: overlay
traefik_backend:
external: true
name: proxy_backend