-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
119 lines (114 loc) · 2.48 KB
/
docker-compose.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
services:
osmnames:
image: klokantech/osmnames-sphinxsearch
container_name: osmnames
flask:
image: gispo/geoviz-server
container_name: flask
volumes:
- /tmp/flask:/tmp/flask
- ./data:/app/data
- ./maps:/app/server/maps
- ./logs:/app/logs
depends_on:
- osmnames
- postgis
environment:
- PGHOST=postgis
- PGPASSWORD=postgres
- PGUSER=postgres
- PGDATABASE=geoviz
- FLICKR_API_KEY
- FLICKR_SECRET
- OSM_EXTRACTS_API_KEY
- OSMNAMES_URL
- SECRET_KEY
- USERNAME
- PASSWORD_HASH
dev-osmnames:
image: klokantech/osmnames-sphinxsearch
container_name: dev-osmnames
ports:
- "5001:80"
dev:
image: gispo/geoviz-server:dev
build:
context: .
target: geoviz-server
container_name: dev-flask
volumes:
- .:/app
depends_on:
- dev-osmnames
- postgis
ports:
- "5000:5000"
environment:
- PGHOST=postgis
- PGPASSWORD=postgres
- PGUSER=postgres
- PGDATABASE=geoviz
- FLICKR_API_KEY
- FLICKR_SECRET
- OSM_EXTRACTS_API_KEY
- OSMNAMES_URL=http://localhost:5001
- SECRET_KEY
- USERNAME
- PASSWORD_HASH
- PASSWORD
- DEV_ENV=1
working_dir: /app/server
command: /app/server/start-dev.sh
serve:
image: ghcr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Helsinki
- URL
- SUBDOMAINS
- VALIDATION=dns
- DNSPLUGIN=route53
volumes:
- ./server/swag/:/config
- /tmp/flask/uwsgi.sock:/tmp/flask/uwsgi.sock
ports:
- "443:443"
- "80:80"
depends_on:
- flask
restart: always
postgis:
image: postgis/postgis
container_name: postgis
volumes:
- geoviz-pgdata:/var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_PASSWORD=postgres
notebook:
image: gispo/geoviz-notebook
container_name: notebook
volumes:
- .:/home/jovyan
ports:
- "8888:8888"
depends_on:
- osmnames
- postgis
stdin_open: true # docker run -i
tty: true # docker run -t
environment:
- PGHOST=postgis
- PGPASSWORD=postgres
- FLICKR_API_KEY
- FLICKR_SECRET
- OSM_EXTRACTS_API_KEY
- OSMNAMES_URL
volumes:
geoviz-pgdata: