-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-dev.yml
95 lines (79 loc) · 1.88 KB
/
docker-compose-dev.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
version: '3.9'
services:
traefik:
extends:
file: docker-compose.yml
service: traefik
ui:
extends:
file: docker-compose.yml
service: ui
build:
context: ./ui
dockerfile: Dockerfile.dev
volumes:
- ./ui/src:/app/src
labels: !override
- "traefik.enable=true"
- "traefik.http.routers.terrarun-ui.rule=Host(`$DOMAIN`)"
- "traefik.http.routers.terrarun-ui.entrypoints=websecure"
- "traefik.http.routers.terrarun-ui.tls=true"
- "traefik.http.services.terrarun-ui.loadbalancer.server.port=3000"
- "traefik.http.routers.terrarun-ui.service=terrarun-ui"
api:
extends:
file: docker-compose.yml
service: api
# Only for local development
#entrypoint: ["python", "terrarun.py", "--ssl-cert-private-key", "./ssl/private.pem", "--ssl-cert-public-key", "./ssl/public.pem"]
volumes:
- ./:/app
worker:
extends:
file: docker-compose.yml
service: worker
volumes:
- ./:/app
cron-tasks:
extends:
file: docker-compose.yml
service: cron-tasks
# Only for local development
volumes:
- ./:/app
db:
extends:
file: docker-compose.yml
service: db
minio:
extends:
file: docker-compose.yml
service: minio
createbucket:
extends:
file: docker-compose.yml
service: createbucket
# Example custom agent
agent:
extends:
file: docker-compose.yml
# Don't start agent for local development, as self-generated SSL certificates
# are not being injected
profiles:
- donotstart
# Only for local development
volumes:
- ./:/app
# Example run task application
tfsec-task:
extends:
file: docker-compose.yml
service: tfsec-task
volumes:
mysqldata:
networks:
web:
name: terrun-web
default:
name: terrarun-default
driver: bridge