-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
45 lines (44 loc) · 991 Bytes
/
docker-compose.yaml
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
# docker compose file for testing purposes,
# betterjenkins is best run on Kubernetes with multiple executors
services:
db:
image: postgres:15-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
- ./db/init.sql:/docker-entrypoint-initdb.d/create_tables.sql
server:
image: tj1997/betterjenkins:server
build: controller/.
depends_on:
- db
environment:
DB_HOST: db
DB_USER: postgres
DB_PASSWORD: postgres
DB_NAME: betterjenkins
ports:
- "127.0.0.1:8080:8080"
links:
- db
# executor:
# image: betterjenkins:executor
# build: executor/.
# depends_on:
# - server
# - db
# environment:
# DB_HOST: db
# DB_USER: postgres
# DB_PASSWORD: postgres
# DB_NAME: postgres
# links:
# - db
volumes:
db:
driver: local