-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
103 lines (96 loc) · 2.89 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3'
services:
autocs:
container_name: autocs
image: autocs/autocs_server
restart: always
depends_on:
- autocs_engine
- rabbitmq
labels:
- traefik.enable=true
- traefik.http.services.autocs.loadbalancer.server.port=8080
- traefik.http.routers.autocs.rule=Host(`${AUTOCS_HOST:-localhost}`) && PathPrefix(`/api/`)
- traefik.http.routers.autocs.entrypoints=web
volumes:
- ./data/:/tmp/data
- autocs_workspace:/tmp/workspace
- autocs_logs:/tmp/logs
networks:
- autocs
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
autocs_engine:
container_name: autocs_engine
image: autocs/autocs_engine
restart: always
depends_on:
- rabbitmq
volumes:
- ./data/:/tmp/data
- autocs_workspace:/tmp/workspace
- autocs_logs:/tmp/logs
networks:
- autocs
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
autocs_ui:
container_name: autocs_ui
image: autocs/autocs_ui
restart: always
depends_on:
- autocs
labels:
- traefik.enable=true
- traefik.http.services.autocs-ui.loadbalancer.server.port=80
- traefik.http.routers.autocs-ui.rule=Host(`${AUTOCS_HOST:-localhost}`)
- traefik.http.routers.autocs-ui.entrypoints=web
networks:
- autocs
traefik:
image: traefik:v2.4
container_name: traefik
restart: always
command:
- "--providers.docker.exposedByDefault=false"
- "--providers.docker.network=autocs"
- "--entryPoints.web.address=:8080"
# Uncomment to get Traefik dashboard
# - "--entryPoints.dashboard.address=:8090"
# - "--api.dashboard=true"
# labels:
# - traefik.enable=true
# - traefik.http.routers.dashboard.entrypoints=dashboard
# - traefik.http.routers.dashboard.service=api@internal
# - traefik.http.routers.dashboard.rule=Host(`${AUTOCS_HOST:-localhost}`)
ports:
- 8080:8080
- 8090:8090
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- autocs
rabbitmq:
container_name: rabbitmq
image: rabbitmq:management
ports:
- "5672:5672"
- "15672:15672"
networks:
- autocs
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "5"
volumes:
autocs_workspace:
autocs_logs:
networks:
autocs: