-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
54 lines (48 loc) · 1.71 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
version: '2.1'
services:
postgresql:
restart: always
image: postgis/postgis:latest
volumes:
- psql-vol:/var/lib/postgresql/data
- ./assets/build/initdb.sh:/docker-entrypoint-initdb.d/initdb.sh
ports:
- 5432:5432
environment:
- TENDENCI_USER=${POSTGRES_USER:-tendenci-usr}
- TENDENCI_DB=${POSTGRES_DB:-tendenci}
- TENDENCI_PASS=${POSTGRES_PASSWORD:-mycomplexpassword}
- POSTGRES_PASSWORD=${POSTGRES_SUPERUSER_PASSWORD:-mycomplexpassword}
healthcheck:
test: ["CMD", "pg_isready", "-h", "localhost", "-d", "${POSTGRES_DB:-tendenci}", "-U", "${POSTGRES_USER:-tendenci-usr}", "-p", "5432"]
interval: 20s
timeout: 5s
retries: 5
tendenci:
restart: always
image: tendenci:latest
depends_on:
postgresql:
condition: service_healthy
volumes:
- logs-vol:/var/log/mysite
- root-vol:/home/tendenci/install/mysite
ports:
- 6080:8000
environment:
# Postgresql setup
- DB_USER=${POSTGRES_USER:-tendenci-usr}
- DB_NAME=${POSTGRES_DB:-tendenci}
- DB_PASS=${POSTGRES_PASSWORD:-mycomplexpassword}
- DB_HOST=${DB_HOST:-postgresql}
- DB_PORT=${DB_PORT:-5432}
# Superuser setup
- ADMIN_USER=${ADMIN_USER:-admin}
- ADMIN_MAIL=${ADMIN_MAIL:[email protected]}
- ADMIN_PASS=${ADMIN_PASS:-password}
- SITE_URL=${SITE_URL:-HTTP://myurl.com}
- TIME_ZONE=${TIME_ZONE:-GMT+0}
volumes:
root-vol:
logs-vol:
psql-vol: