-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1.58 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
version: '3.8'
services:
app:
build: . # Build the app from the local Dockerfile
environment:
- SQL_USER=${SQL_USER}
- SQL_HOST=jdbc:postgresql://ion-db:5432/${SQL_DATABASE}
- SQL_PASSWORD=${SQL_PASSWORD}
- STAGING_DIR=${STAGING_DIR}
- TEMP_DIR=${TEMP_DIR}
- CONFIG_FILE=${CONFIG_FILE}
- GIT_SERVER_ADDRESS=${GIT_SERVER_ADDRESS}
- GIT_REPOSITORY_NAME=${GIT_REPOSITORY_NAME}
- GIT_USER=${GIT_USER}
- GIT_PASSWORD=${GIT_PASSWORD}
- GIT_BRANCH=${GIT_BRANCH}
- PORT=${SERVER_PORT}
- TOKEN=${TOKEN}
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "${SERVER_PORT}:${SERVER_PORT}"
depends_on:
ion-db:
condition: service_started
git-setup:
condition: service_started
ion-db:
image: postgres:13.2-alpine
ports:
- "${SQL_PORT}:5432"
environment:
- POSTGRES_USER=${SQL_USER}
- POSTGRES_PASSWORD=${SQL_PASSWORD}
- POSTGRES_DB=${SQL_DATABASE}
git-server:
image: gitbucket/gitbucket:4.35.3
ports:
- "${GIT_PORT}:8080"
volumes:
- git-data:/gitbucket
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:${GIT_PORT}" ]
interval: 30s
timeout: 10s
retries: 5
git-setup:
image: gitbucket/gitbucket:4.35.3
depends_on:
git-server:
condition: service_healthy
restart: "no"
entrypoint: [ "curl", "-X", "POST", "-u", "root:root", "git-server:${GIT_PORT}/api/v3/user/repos", "-d", "{\"name\":\"integration-data\", \"auto_init\": true}" ]
volumes:
db-data:
git-data: