-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-pipeline.yaml
60 lines (60 loc) · 1.54 KB
/
docker-compose-pipeline.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3.8'
services:
nexus:
container_name: nexus
restart: unless-stopped
image: sonatype/nexus3:3.64.0
user: nexus
environment:
NEXUS_CONTEXT: "/"
INSTALL4J_ADD_VM_PARAMS: "-Xms2g -Xmx2g -XX:MaxDirectMemorySize=2g -Djava.util.prefs.userRoot=/nexus-data/javaPrefs"
ports:
- target: 8081
published: 8082
protocol: tcp
mode: host
networks:
- bridge
volumes:
- nexus-data:/nexus-data
pact-server:
container_name: pact-server
restart: unless-stopped
image: pactfoundation/pact-broker:2.114.0-pactbroker2.108.0-multi
environment:
PACT_BROKER_DATABASE_ADAPTER: 'postgres'
PACT_BROKER_DATABASE_USERNAME: 'pactbrokeruser'
PACT_BROKER_DATABASE_PASSWORD: 'password'
PACT_BROKER_DATABASE_HOST: 'postgres'
PACT_BROKER_DATABASE_NAME: 'pactbroker'
ports:
- target: 9292
published: 9292
protocol: tcp
mode: host
networks:
- bridge
postgres:
container_name: postgres
restart: unless-stopped
image: postgres:14-alpine
environment:
POSTGRES_USER: 'admin'
POSTGRES_PASSWORD: 'password'
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- target: 5432
published: 5432
protocol: tcp
mode: host
networks:
- bridge
volumes:
- ./scripts/pactbrocker.sql:/docker-entrypoint-initdb.d/pactbrocker.sql:ro
- postgres-data:/var/lib/postgresql/data/pgdata
volumes:
nexus-data:
postgres-data:
networks:
bridge:
driver: bridge