51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
cstl-data:
|
|
build: cstl-data
|
|
# Note : Activates following lines to mount Constellation data (integrated files + admin database) from host file-system.
|
|
# volumes:
|
|
# - /data/dir/pgdata:/var/rhomeo/pgdata
|
|
# - /data/dir/cstl:/var/rhomeo/cstl
|
|
|
|
db:
|
|
build: db
|
|
depends_on:
|
|
- cstl-data
|
|
volumes_from:
|
|
- cstl-data
|
|
ports:
|
|
- "5433:5432"
|
|
|
|
ftp:
|
|
build: ftp
|
|
# Note : Activates following lines to mount ftp data from host file-system.
|
|
# volumes:
|
|
# - /data/dir:/var/rhomeo/ftp
|
|
|
|
hostname: rhomeo-ftp
|
|
ports:
|
|
- "20:20"
|
|
- "21:21"
|
|
|
|
cstl:
|
|
build: constellation
|
|
depends_on:
|
|
- cstl-data
|
|
- db
|
|
volumes_from:
|
|
- cstl-data
|
|
volumes:
|
|
- ./webapps:/opt/apache-tomcat-7.0.69/webapps
|
|
ports:
|
|
- "8080:8080"
|
|
- "8000:8000"
|
|
links:
|
|
- db
|
|
environment :
|
|
DB_URL: postgres://cstl:admin@db:5432/constellation
|
|
DATABASE_URL: postgres://cstl:admin@db:5432/constellation
|
|
EPSG_DATABASE_URL: postgres://cstl:admin@db:5432/constellation
|
|
DATA: /var/rhomeo/cstl
|
|
CSTL_URL: http://constellation.cenra-outils.org
|