forked from eclipse-sw360/sw360
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (64 loc) · 1.4 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
# Copyright BMW CarIT GmbH, 2021.
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
version: '3.8'
services:
sw360:
image: 'sw360:latest'
build:
context: .
args:
- COUCHDB_USER
- COUCHDB_PASSWORD
container_name: sw360
depends_on:
- postgresdb
- couchdb
ports:
- "8080:8080"
- "11311:11311"
stdin_open: true
tty: true
volumes:
- etc:/etc/sw360
- webapps:/app/sw360/tomcat/webapps
- document_library:/app/sw360/data/document_library
- ./config:/app/sw360/config
postgresdb:
image: 'postgres:14'
restart: unless-stopped
environment:
- POSTGRES_USER=liferay
- POSTGRES_PASSWORD=liferay
- POSTGRES_DB=lportal
volumes:
- postgres:/var/lib/postgresql/data/
ports:
- '5438:5432'
logging:
options:
max-size: 10m
max-file: "2"
couchdb:
image: couchdb
environment:
- COUCHDB_USER=admin
- COUCHDB_PASSWORD=password
- COUCHDB_CREATE_DATABASE=yes
ports:
- 5984:5984
volumes:
- couchdb:/opt/couchdb/data
volumes:
postgres: null
couchdb: null
etc: null
webapps: null
document_library: null
networks:
default:
name: sw360net