-
Notifications
You must be signed in to change notification settings - Fork 299
/
Copy pathartifactory-pro.yml
76 lines (71 loc) · 1.87 KB
/
artifactory-pro.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
73
74
75
76
version: '3'
services:
postgresql:
image: docker.bintray.io/postgres:9.6.11
ports:
- 5432:5432
environment:
- POSTGRES_DB=artifactory
# The following must match the DB_USER and DB_PASSWORD values passed to Artifactory
- POSTGRES_USER=artifactory
- POSTGRES_PASSWORD=password
#volumes:
# - artifactory:/var/lib/postgresql/data
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
placement:
constraints: [node.role != manager]
artifactory:
image: docker.bintray.io/jfrog/artifactory-pro:5.4.4
ports:
- 8081:8081
depends_on:
- postgresql
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
placement:
constraints: [node.role != manager]
#volumes:
# - artifactory:/var/opt/jfrog/artifactory
environment:
- DB_TYPE=postgresql
# The following must match the POSTGRES_USER and POSTGRES_PASSWORD values passed to PostgreSQL
- DB_USER=artifactory
- DB_PASSWORD=password
# Add extra Java options by uncommenting the following line
#- EXTRA_JAVA_OPTIONS=-Xmx4g
nginx:
image: docker.bintray.io/jfrog/nginx-artifactory-pro:5.4.4
ports:
- 80:80
- 443:443
depends_on:
- artifactory
links:
- artifactory
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
placement:
constraints: [node.role != manager]
#volumes:
# - artifactory:/var/opt/jfrog/nginx
environment:
- ART_BASE_URL=http://artifactory:8081/artifactory
- SSL=true
#volumes:
# artifactory: