forked from LayerManager/layman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
102 lines (96 loc) · 2.78 KB
/
docker-compose.dev.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
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
version: '3.3'
services:
layman_dev:
container_name: layman_dev
build:
context: docker/.
dockerfile: Dockerfile.dev
image: layman_dev:latest
user: ${UID_GID}
command: bash start.sh
env_file:
- .env
ports:
- 8000:8000
volumes:
- ./layman_data:/layman_data
- ./sample:/code/sample
- ./src:/code/src
- ./tmp:/code/tmp
- ./start.sh:/code/start.sh
- ./version.txt:/code/version.txt
- ./doc:/code/doc
- ./deps/geoserver/data:/geoserver/data_dir
- ./deps/geoserver/sample/geoserver_data:/geoserver/initial_data_dir
- ./deps/qgis/data:/qgis/data
depends_on:
- timgen
- redis
- postgresql
- nginx-qgis
- geoserver
- layman_client
- micka
celery_worker_dev:
image: layman_dev:latest
user: ${UID_GID}
# use watchdog
command: bash -c "cd src && python3 wait_for_deps.py && watchmedo auto-restart -d . -p '*.py' --recursive -- python3 -m celery -Q $${LAYMAN_CELERY_QUEUE} -A layman.celery_app worker --loglevel=info"
# command: bash -c "cd src && python3 -m celery -A layman.celery_app worker --loglevel=info"
env_file: .env
environment:
- C_FORCE_ROOT=true
- LAYMAN_SKIP_REDIS_LOADING=true
volumes:
- ./layman_data:/layman_data
- ./sample:/code/sample
- ./src:/code/src
- ./tmp:/code/tmp
- ./deps/qgis/data:/qgis/data
depends_on:
- layman_dev
flower:
container_name: flower
image: layman_dev:latest
user: ${UID_GID}
command: bash -c "cd src && python3 wait_for_deps.py && python3 -m flower -A layman.celery_app --port=5555"
env_file: .env
environment:
- LAYMAN_SKIP_REDIS_LOADING=true
volumes:
- ./layman_data:/layman_data
- ./sample:/code/sample
- ./src:/code/src
- ./tmp:/code/tmp
- ./deps/qgis/data:/qgis/data
ports:
- 5555:5555
depends_on:
- celery_worker_dev
timgen:
container_name: timgen
build:
context: timgen
dockerfile: Dockerfile.production
image: timgen:latest
user: ${UID_GID}
command: sh -c "node proxy.js & ./node_modules/.bin/http-server dist/"
# ports:
# - 8080:8080
# - 8081:8081
layman_client:
container_name: layman_client
build:
context: client
dockerfile: docker/Dockerfile.production
args:
- LAYMAN_CLIENT_VERSION=${LAYMAN_CLIENT_VERSION}
- LTC_BASEPATH=${LTC_BASEPATH}
image: layman_client:latest
command: sh -c "npm start"
env_file:
- .env
ports:
- 3000:3000
depends_on:
- redis