forked from bmarsh9/gapps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (70 loc) · 1.98 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
version: '3'
services:
gapps:
container_name: gapps
image: bmarsh13/gapps:3.5.3
depends_on:
- postgres
networks:
- db_nw
- web_nw
ports:
- "5000:5000"
restart: unless-stopped
environment:
- SQLALCHEMY_DATABASE_URI=postgresql://${POSTGRES_USER:-db1}:${POSTGRES_PASSWORD:-db1}@${POSTGRES_HOST:-postgres}/${POSTGRES_DB:-db1}
- DEFAULT_EMAIL=${DEFAULT_EMAIL:[email protected]}
- DEFAULT_PASSWORD=${DEFAULT_PASSWORD:-admin}
- RESET_DB=${RESET_DB:-no}
- DOC_LINK=https://github.com/bmarsh9/gapps
- VERSION=${VERSION:-3.5.3}
- APP_NAME=Gapps
- POSTGRES_USER=${POSTGRES_USER:-db1}
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-db1}
- POSTGRES_DB=${POSTGRES_DB:-db1}
- GUNICORN_WORKERS=2
gapps-worker:
container_name: gapps-worker
image: bmarsh13/gapps:3.5.3
depends_on:
- postgres
networks:
- db_nw
- web_nw
#ports:
# - "5000:5000"
restart: unless-stopped
environment:
- SQLALCHEMY_DATABASE_URI=postgresql://${POSTGRES_USER:-db1}:${POSTGRES_PASSWORD:-db1}@${POSTGRES_HOST:-postgres}/${POSTGRES_DB:-db1}
- VERSION=${VERSION:-3.5.3}
- APP_NAME=Gapps
- AS_WORKER=yes
- POSTGRES_USER=${POSTGRES_USER:-db1}
- POSTGRES_HOST=${POSTGRES_HOST:-postgres}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-db1}
- POSTGRES_DB=${POSTGRES_DB:-db1}
- WORKER_CONCURRENCY=${WORKER_CONCURRENCY:-1}
- WORKER_LOG_LEVEL=DEBUG
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-db1}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-db1}
POSTGRES_DB: ${POSTGRES_DB:-db1}
PGDATA: /data/postgres
#volumes:
# - postgres:/data/postgres
#ports:
# - "5432:5432"
networks:
- db_nw
restart: unless-stopped
networks:
db_nw:
driver: bridge
web_nw:
driver: bridge
volumes:
dbdata: