forked from jfrog/artifactory-docker-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
artifactory-pro.yml
52 lines (52 loc) · 1.52 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
version: '2'
services:
postgresql:
image: docker.bintray.io/postgres:9.5.2
container_name: postgresql
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:
- /data/postgresql:/var/lib/postgresql/data
restart: always
artifactory:
image: docker.bintray.io/jfrog/artifactory-pro:5.1.3
container_name: artifactory
ports:
- 8081:8081
depends_on:
- postgresql
links:
- postgresql
volumes:
- /data/artifactory:/var/opt/jfrog/artifactory
# Mount the postgresql driver. Make sure to have it in your local path (~/postgresql-9.4.1212.jar)
- ~/postgresql-9.4.1212.jar:/opt/jfrog/artifactory/tomcat/lib/postgresql-9.4.1212.jar
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
restart: always
nginx:
image: docker.bintray.io/jfrog/nginx-artifactory-pro:5.1.3
container_name: nginx
ports:
- 80:80
- 443:443
depends_on:
- artifactory
links:
- artifactory
volumes:
- /data/nginx:/var/opt/jfrog/nginx
environment:
- ART_BASE_URL=http://artifactory:8081/artifactory
- SSL=true
restart: always