-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
91 lines (87 loc) · 2.31 KB
/
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
###############################################
# #
# Git Ssh Server - PaaSTech Cloud #
# #
# This compose file is purely made for #
# development purposes. #
# #
# Do not use this in production. #
# #
###############################################
services:
server:
build:
context: .
dockerfile: _docker/Dockerfile.server
volumes:
- ./_srv:/srv
- ./_scripts/output/server:/etc/ssh/keys
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "2222:2222"
environment:
- GIT_REPOSITORIES_FULL_BASE_PATH=/srv
- GIT_POSTGRESQL_USERNAME=paastech
- GIT_POSTGRESQL_PASSWORD=paastech
- GIT_POSTGRESQL_DATABASE_NAME=paastech
- GIT_POSTGRESQL_PORT=5432
- GIT_POSTGRESQL_HOST=postgresql
- GIT_HOST_SIGNER_PATH=/etc/ssh/keys/id_ed25519
- GIT_LOG_LEVEL=trace
depends_on:
postgresql:
condition: service_healthy
deploy:
resources:
limits:
cpus: "0.5"
memory: 256M
reservations:
cpus: "0.25"
memory: 125M
client:
build:
context: .
dockerfile: _docker/Dockerfile.client
args:
- REPOSITORY_NAME=6d309660-fd8d-45b1-95fb-c57790cb392a
- GIT_REMOTE_URL=ssh://git@server:2222/6d309660-fd8d-45b1-95fb-c57790cb392a
stdin_open: true
tty: true
depends_on:
- server
deploy:
resources:
limits:
cpus: "0.5"
memory: 256M
reservations:
cpus: "0.25"
memory: 125M
postgresql:
image: postgres:15-alpine
restart: always
environment:
- POSTGRES_USER=paastech
- POSTGRES_PASSWORD=paastech
- POSTGRES_DB=paastech
ports:
- "5432:5432"
volumes:
- "paastech:/var/lib/postgresql/data"
deploy:
resources:
limits:
cpus: "0.5"
memory: 256M
reservations:
cpus: "0.25"
memory: 125M
healthcheck:
test: /usr/local/bin/pg_isready -U paastech -d paastech
interval: 5s
timeout: 10s
retries: 4
volumes:
paastech:
git_server: