-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·81 lines (74 loc) · 2.1 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.7'
volumes:
mongodb:
minio:
services:
traefik:
image: traefik:v2.2
command:
- '--api.insecure=true'
- '--providers.docker'
- '--providers.file.directory=/etc/traefik/dynamic_conf'
- '--entrypoints.http.address=:80'
- '--entrypoints.https.address=:443'
- '--providers.docker.exposedByDefault=false'
ports:
- '80:80'
- '443:443'
- '8080:8080'
volumes:
- './traefik/dynamic_conf:/etc/traefik/dynamic_conf'
- '/var/run/docker.sock:/var/run/docker.sock'
- '/etc/certs:/etc/certs:ro'
restart: always
mongodb:
image: 'mongo:latest'
volumes:
- 'mongodb:/data/db'
command: --auth
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: a_Secure_And_Secret_Good_Password!
restart: always
minio:
image: 'minio/minio:latest'
expose:
- '9000'
volumes:
- 'minio:/data'
environment:
MINIO_ACCESS_KEY: 'minio_access_key'
MINIO_SECRET_KEY: 'minio_secret_key'
MINIO_REGION_NAME: 'us-east-1'
command: server /data
restart: always
redis:
image: 'redis:latest'
expose:
- '6379'
restart: always
myrunes-be:
image: 'myrunes/backend:latest'
expose:
- '9000'
volumes:
- './myrunes:/etc/myrunes'
restart: always
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.myrunes-be.entrypoints=https'
- 'traefik.http.routers.myrunes-be.tls=true'
- 'traefik.http.routers.myrunes-be.rule=PathPrefix(`/api`)'
- 'traefik.http.routers.myrunes-be.middlewares=myrunes-be-stripprefix'
- 'traefik.http.middlewares.myrunes-be-stripprefix.stripprefix.prefixes=/api'
myrunes-fe:
image: 'myrunes/frontend:latest'
expose:
- '8080'
restart: on-failure
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.myrunes-fe.entrypoints=https'
- 'traefik.http.routers.myrunes-fe.tls=true'
- 'traefik.http.routers.myrunes-fe.rule=PathPrefix(`/`)'
- 'traefik.http.services.myrunes-fe.loadbalancer.server.port=8080'