-
Notifications
You must be signed in to change notification settings - Fork 55
/
compose.yaml
135 lines (130 loc) · 3.6 KB
/
compose.yaml
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
volumes:
#
# *_home volumes are the /home/arcgis directories
# and the software for each service gets installed there.
#
# *_data volumes are where the data for each services gets stored.
#
portal_home:
name: arcgis_portal_home
portal_data:
name: arcgis_portal_data
server_home:
name: arcgis_server_home
server_data:
name: arcgis_server_data
datastore_home:
name: arcgis_datastore_home
datastore_data:
name: arcgis_datastore_data
postgres_data:
name: arcgis_postgres_data
pgadmin_data:
name: arcgis_pgadmin_data
services:
server:
image: arcgis-server
hostname: ${GISSERVER}
build:
context: ./server
dockerfile: Dockerfile
env_file: ./.env
environment:
- ESRI_VERSION=${ESRI_VERSION}
- AGS_USERNAME=${USERNAME}
- AGS_PASSWORD=${PASSWORD}
ports:
- "6080:6080"
- "6443:6443"
volumes:
- ./Installers/ArcGISServer:/app/Installer:ro
- ./Licenses/server.prvc:/app/server.prvc:ro
- ./configurebasedeployment.properties:/app/configurebasedeployment.properties:rw
- server_home:/home/arcgis:rw
- server_data:/srv/directories:rw
# - server_config:/home/arcgis/server/usr/config-store
# - server_logs:/home/arcgis/server/usr/logs
# Uncomment the next three lines to work in a shell environment for debugging. (See exec_server)
#entrypoint: /bin/bash
#stdin_open: true
#tty: true
portal:
image: arcgis-portal
hostname: ${PORTAL}
build:
context: ./portal
dockerfile: Dockerfile
env_file: ./.env
environment:
- ESRI_VERSION=${ESRI_VERSION}
- AGP_USERNAME=${USERNAME}
- AGP_PASSWORD=${PASSWORD}
- PORTAL_CONTENT=/srv/content
ports:
- "7080:7080"
- "7443:7443"
volumes:
- ./Installers/PortalForArcGIS:/app/Installer:ro
- ./Licenses/portal.json:/app/portal_license.json:ro
- portal_home:/home/arcgis:rw
- portal_data:/home/arcgis/content:rw
#- portal_data:/home/arcgis/portal/usr/arcgisportal:rw
links:
- server
- datastore
# Uncomment the next three lines to work in a shell environment for debugging.
# entrypoint: /bin/bash
# stdin_open: true
# tty: true
datastore:
image: arcgis-datastore
hostname: ${DATASTORE}
build:
context: ./datastore
dockerfile: Dockerfile
env_file: ./.env
environment:
- ESRI_VERSION=${ESRI_VERSION}
- AGE_SERVER=${GISSERVER}
- AGS_USERNAME=${USERNAME}
- AGS_PASSWORD=${PASSWORD}
ports:
- "2443:2443"
- "9876:9876"
volumes:
- ./Installers/DataStore:/app/Installer:ro
- datastore_home:/home/arcgis:rw
# where does this belong
# - datastore_data:/home/arcgis/?????:rw
links:
- server
# Uncomment the next three lines to work in a shell environment for debugging.
#entrypoint: /bin/bash
#stdin_open: true
#tty: true
postgres:
image: postgres
build:
context: .
dockerfile: Dockerfile.postgres
ports:
# Allow access to this database from our LAN
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
env_file: .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
pgadmin:
image: dpage/pgadmin4:latest
ports:
- "8213:80"
volumes:
# Session data, user files, config files, config database go here.
- pgadmin_data:/var/lib/pgadmin
env_file: .env
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_USER}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
PGADMIN_DISABLE_POSTFIX: 1