-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
70 lines (62 loc) · 1.51 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
#version: '3.2'
services:
git-server:
image: git-server:latest
container_name: git-server
volumes:
- gitolite-sshkeys:/etc/ssh/keys
- gitolite-git:/var/lib/git
ports:
- "2222:22"
environment:
SSH_KEY_NAME: ${SSH_KEY_NAME}
SSH_KEY: ${SSH_KEY}
auth:
image: quay.io/keycloak/keycloak:19.0.3
container_name: auth
volumes:
- ./keycloak/data:/var/tmp
- ./keycloak/startup-scripts/init.sh:/docker-entrypoint-sh/init.sh
entrypoint: sh -c "/docker-entrypoint-sh/init.sh"
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_PROXY: edge
ports:
- 8180:8180
db:
container_name: git-diploma-db
image: postgres:15
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=gd-admin
- POSTGRES_DB=gd
volumes:
- ./init_db/init.sql:/docker-entrypoint-initdb.d/init.sql
networks:
gd-net:
#- gd-db:/var/lib/postgresql/data
pgadmin:
container_name: git-diploma-pgadmin
image: dpage/pgadmin4
restart: always
ports:
- "8888:80"
environment:
PGADMIN_DEFAULT_EMAIL: gd-admin@gd-admin.org
PGADMIN_DEFAULT_PASSWORD: postgres
volumes:
- pgadmin-data:/var/lib/pgadmin
networks:
gd-net:
volumes:
#gd-db:
pgadmin-data:
git-repo-data:
gitolite-sshkeys:
gitolite-git:
networks:
gd-net: