-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
executable file
·55 lines (52 loc) · 1.12 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
version: "3"
services:
db:
image: postgis/postgis:13-3.0
expose:
- 5432
ports:
- "5433:5432"
environment:
- POSTGRES_DB=sip_db
- POSTGRES_USER=sip
- POSTGRES_PASSWORD=eiJ2koo6
webapplication:
build:
context: ./webapplication
dockerfile: Dockerfile
command: /bin/bash -c "exec invoke run"
environment:
- DJANGO_SETTINGS_MODULE=sip.settings
- POSTGRES_DB=sip_db
- POSTGRES_USER=sip
- POSTGRES_PASSWORD=eiJ2koo6
volumes:
- ./webapplication:/code
- ./data:/data
- ./data/media:/media
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- db
webviewer:
image: node:14.5.0
volumes:
- ./webviewer:/client
working_dir: /client
expose:
- 3000
ports:
- "3000:3000"
command: bash -c "npm install && npm start"
depends_on:
- webserver
webserver:
image: nginx:1.19.3
volumes:
- ./webserver/default.conf:/etc/nginx/conf.d/default.conf
- ./data:/data
expose:
- 9000
ports:
- "9000:9000"
depends_on:
- webapplication