-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
123 lines (116 loc) · 2.71 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
services:
sshagent:
image: ${DOCKER_REGISTRY-}sshagent
build:
context: .
dockerfile: SshAgent/Dockerfile
restart: unless-stopped
volumes:
- app_volume:/app/shared
environment:
TZ: "Europe/Prague"
SSH_AUTH_SOCK: "/app/shared/agentsocket"
networks:
- sshagent_internal_network
profiles:
- sshagent
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
restart: unless-stopped
volumes:
- sql_volume:/var/opt/mssql
environment:
ACCEPT_EULA: "Y"
MSSQL_PID: "Express"
TZ: "Europe/Prague"
networks:
- db_internal_network
- external_network
profiles:
- db
datastagingapi:
image: ${DOCKER_REGISTRY-}datastagingapi
build:
context: .
dockerfile: DataStagingAPI/Dockerfile
restart: unless-stopped
volumes:
- app_sftp_temp_volume:/sftp
- app_volume:/app/shared
environment:
ASPNETCORE_RUNTYPE_ENVIRONMENT: "Docker"
TZ: "Europe/Prague"
networks:
- db_internal_network
- external_network
profiles:
- staging
heappe:
image: ${DOCKER_REGISTRY-}heappe
build:
context: .
dockerfile: RestApi/Dockerfile
restart: unless-stopped
volumes:
- app_sftp_temp_volume:/sftp
- app_volume:/app/shared
environment:
ASPNETCORE_RUNTYPE_ENVIRONMENT: "Docker"
SSH_AUTH_SOCK: "/app/shared/agentsocket"
TZ: "Europe/Prague"
networks:
- sshagent_internal_network
- db_internal_network
- external_network
- vaultNet
extra_hosts:
- "host.docker.internal:host-gateway"
vault:
image: hashicorp/vault:latest
container_name: heappe-vault
expose:
- 8200:8200
environment:
- VAULT_ADDR=http://localhost:8200
volumes:
- vault-volume:/vault
- ../app/confs/vault/vault:/vault/config
healthcheck:
retries: 5
command: server
cap_add:
- IPC_LOCK
networks:
- vaultNet
vaultagent:
image: hashicorp/vault:latest
container_name: vaultagent
expose:
- 8100:8100
volumes:
- vault-agent-volume:/vault/agent
- ../app/confs/vault/agent:/vault/config
- ../app/logs/Vault/:/vault/logs
command: proxy -config=/vault/config/vault-agent.hcl -log-level debug -log-file=/vault/logs/vault-agent.log
cap_add:
- IPC_LOCK
networks:
- vaultNet
depends_on:
- vault
volumes:
# Shared volumes
app_volume:
app_sftp_temp_volume:
# Invidual volumes
sql_volume:
vault-volume:
vault-agent-volume:
networks:
external_network:
sshagent_internal_network:
internal: true
db_internal_network:
internal: true
vaultNet:
internal: true