-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.deps.demo.yml
67 lines (61 loc) · 2.43 KB
/
docker-compose.deps.demo.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
version: '3.3'
volumes:
redis-data:
services:
postgresql:
image: kartoza/postgis:10.0-2.4
volumes:
- ./deps/postgresql/data:/var/lib/postgresql
environment:
- USERNAME=docker
- PASS=docker
- ALLOW_IP_RANGE=0.0.0.0/0
restart: on-failure
geoserver:
build:
context: deps/geoserver/docker
dockerfile: Dockerfile
volumes:
- ./deps/geoserver/data:/opt/geoserver/data_dir
- ./deps/geoserver/docker/code:/geoserver_code
- ./deps/geoserver/sample:/geoserver_sample
- ./deps/geoserver/tmp:/geoserver_tmp
restart: on-failure
environment:
- GS_VERSION=2.13.0
env_file:
- deps/geoserver/docker/.env
depends_on:
- postgresql
redis:
image: redis:4.0.11-alpine
volumes:
- redis-data:/data
liferay:
build:
context: deps/liferay/docker
dockerfile: Dockerfile
ports:
- 8082:8080
volumes:
- ./deps/liferay/transit:/etc/liferay/tmp # for copying files from within the container to host
# https://github.com/docker/compose/issues/3270#issuecomment-206214034
# ./deps/liferay/out must be owned by non-root
- ./deps/liferay/sample/hypersonic:/etc/liferay/mount/files/data/hypersonic
micka:
container_name: micka
build:
context: deps/micka/docker
dockerfile: Dockerfile
command: bash -c "envsubst '$$MICKA_HOSTPORT' < /var/www/html/Micka/php/app/config/config.local.neon.demo-template > /var/www/html/Micka/php/app/config/config.local.neon && envsubst '$$MICKA_HOSTPORT' < /etc/nginx/sites-available/default.demo-template > /etc/nginx/sites-available/default && cd /code/src && python3 wait_for_deps.py && /etc/init.d/php7.3-fpm start && nginx -g 'daemon off;'"
environment:
- MICKA_HOSTPORT=${MICKA_HOSTPORT}
env_file:
- deps/micka/docker/.env
volumes:
- ./deps/micka/docker/code/src:/code/src
- ./deps/micka/sample/confs/bootstrap.php:/var/www/html/Micka/php/app/bootstrap.php
- ./deps/micka/sample/confs/config.local.neon.demo-template:/var/www/html/Micka/php/app/config/config.local.neon.demo-template
- ./deps/micka/sample/confs/default.demo-template:/etc/nginx/sites-available/default.demo-template
depends_on:
- postgresql