This repository has been archived by the owner on Aug 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (80 loc) · 2.1 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
version: '3.7'
services:
geoserver:
image: maxdragonheart/geoserver:latest
environment:
GS_VERSION: ${GS_VERSION}
GS_DEMO_DATA: ${GS_DEMO_DATA}
GS_HTTP_PORT: ${GS_HTTP_PORT}
GS_INITIAL_MEMORY: ${GS_INITIAL_MEMORY}
GS_MAXIMUM_MEMORY: ${GS_MAXIMUM_MEMORY}
container_name: dev_geoserver
restart: always
ports:
- ${GS_HTTP_PORT}:8080
volumes:
- tomcat:/opt/tomcat
- geoserver:/opt/tomcat/webapps/geoserver
networks:
- opengeodataproject
db:
image: postgis/postgis
restart: always
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USER}
POSTGRES_DB: ${DB_NAME}
container_name: db_postgis
volumes:
- db-data:/var/lib/postgresql/data
networks:
- opengeodataproject
website:
image: maxdragonheart/${PROJECT_NAME}
build:
context: ./website
dockerfile: Dockerfile
environment:
PROJECT_NAME: ${PROJECT_NAME}
PROJECT_PORT: ${PROJECT_PORT}
SECRET_KEY: ${SECRET_KEY}
DB_ENGINE: ${DB_ENGINE}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_PORT: ${DB_PORT}
DB_HOST: ${DB_HOST}
DEBUG: 1
ALLOWED_HOSTS: ${ALLOWED_HOSTS}
ADMIN_USERNAME: ${ADMIN_USERNAME}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
DOMAIN_NAME: ${DOMAIN_NAME}
DOMAIN: ${DOMAIN}
SITE_TITLE: ${SITE_TITLE}
SITE_LOGO: ${SITE_LOGO}
SITE_DESCRIPTION: ${SITE_DESCRIPTION}
ADDRESS: ${ADDRESS}
CONTACT_PHONE: ${CONTACT_PHONE}
CONTACT_EMAIL: ${CONTACT_EMAIL}
CONTACT_OFFICIAL_EMAIL: ${CONTACT_OFFICIAL_EMAIL}
container_name: website
restart: always
ports:
- ${PROJECT_PORT}:${PROJECT_PORT}
volumes:
- website-static-folder:/app/web/static-folder
- website-media-folder:/app/web/media-folder
- website-logs:/app/web/logs
depends_on:
- geoserver
- db
networks:
- opengeodataproject
volumes:
db-data:
website-static-folder:
website-media-folder:
website-logs:
networks:
opengeodataproject:
driver: bridge