forked from marxanweb/marxan-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (38 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (38 loc) · 959 Bytes
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
version: '3.8'
services:
nginx:
image: nginx:latest
container_name: marxan-proxy
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
depends_on:
- marxan-server
- marxan-client
marxan-client:
build: ../marxan-client
image: openmarxclient:test
container_name: openmarxclient
marxan-server:
build: .
platform: linux/amd64
depends_on:
- db
db:
image: postgis/postgis:10-3.2
platform: linux/amd64
environment:
POSTGRES_USER: jrc
POSTGRES_PASSWORD: thargal88
POSTGRES_DB: marxan
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# The init.sh script will be executed on startup and will restore the database
# from the dump.backup file.
- ./init.sh:/docker-entrypoint-initdb.d/init.sh
- ./dump.sql:/docker-entrypoint-initdb.d/dump.backup
volumes:
postgres_data: