forked from fossology/fossology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
72 lines (71 loc) · 1.79 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
71
72
# FOSSology Docker Compose file
# Copyright Siemens AG 2016, [email protected]
# Copyright TNG Technology Consulting GmbH 2016-2017, [email protected]
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.
#
# Description: Recipe for setting up a multi container FOSSology
# Docker setup with separate Database instance
version: '3'
services:
scheduler:
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
- no_proxy
image: fossology
restart: unless-stopped
environment:
- FOSSOLOGY_DB_HOST=db
- FOSSOLOGY_DB_NAME=fossology
- FOSSOLOGY_DB_USER=fossy
- FOSSOLOGY_DB_PASSWORD=fossy
user: fossy
command: scheduler
depends_on:
- db
volumes:
- repository:/srv/fossology/repository/
web:
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
- no_proxy
image: fossology
restart: unless-stopped
environment:
- FOSSOLOGY_DB_HOST=db
- FOSSOLOGY_DB_NAME=fossology
- FOSSOLOGY_DB_USER=fossy
- FOSSOLOGY_DB_PASSWORD=fossy
- FOSSOLOGY_SCHEDULER_HOST=scheduler
command: web
ports:
- 8081:80
depends_on:
- db
- scheduler
volumes:
- repository:/srv/fossology/repository/
db:
image: postgres:9.6
restart: unless-stopped
environment:
- POSTGRES_DB=fossology
- POSTGRES_USER=fossy
- POSTGRES_PASSWORD=fossy
- POSTGRES_INITDB_ARGS='-E SQL_ASCII'
volumes:
- database:/var/lib/postgresql/data
volumes:
database:
repository: