forked from SUSE/Portus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.26 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
version: '2'
services:
web:
build: .
command: pumactl -F /portus/config/puma.rb start
environment:
- PORTUS_MACHINE_FQDN_VALUE=${EXTERNAL_IP}
- PORTUS_DB_HOST=db
- PORTUS_DB_PASSWORD=portus
- PORTUS_PUMA_HOST=0.0.0.0:3000
- PORTUS_PUMA_WORKERS=2
- PORTUS_PUMA_MAX_THREADS=4
volumes:
- .:/portus
ports:
- 3000:3000
links:
- db
crono:
image: portus_web
entrypoint: bin/crono
environment:
- PORTUS_MACHINE_FQDN_VALUE=${EXTERNAL_IP}
- PORTUS_DB_HOST=db
- PORTUS_DB_PASSWORD=portus
volumes:
- .:/portus
links:
- db
db:
image: library/mariadb:10.0.23
environment:
MYSQL_ROOT_PASSWORD: portus
registry:
image: library/registry:2.3.1
environment:
- REGISTRY_AUTH_TOKEN_REALM=http://${EXTERNAL_IP}:3000/v2/token
- REGISTRY_AUTH_TOKEN_SERVICE=${EXTERNAL_IP}:${REGISTRY_PORT}
- REGISTRY_AUTH_TOKEN_ISSUER=${EXTERNAL_IP}
volumes:
- /registry_data
- ./compose/registry/portus.crt:/etc/docker/registry/portus.crt:ro
- ./compose/registry/config.yml:/etc/docker/registry/config.yml:ro
ports:
- ${REGISTRY_PORT}:5000
- 5001:5001 # required to access debug service
links:
- web