-
Notifications
You must be signed in to change notification settings - Fork 135
/
docker-compose.yml
52 lines (47 loc) · 1.15 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
version: '3'
services:
database:
image: postgres:11
restart: always
# ports:
# - "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
POSTGRES_DB: pygmy
pygmy:
image: amit19/pygmy
restart: always
build: .
# ports:
# - "9119:9119"
links:
- database
environment:
- DB_PASSWORD=root
- DB_USER=root
- DB_NAME=pygmy
- DB_HOST=database
- DB_PORT=5432
volumes:
- .:/pygmy
command: gunicorn --log-file /var/log/pygmy/error_logs.log --access-logfile /var/log/pygmy/acclogs.log --log-level DEBUG --bind 0.0.0.0:9119 --workers 2 pygmy.rest.wsgi:app
depends_on:
- database
pygmyui:
image: amit19/pygmy
restart: always
build: .
ports:
- "8000:8000"
links:
- pygmy
environment:
- PYGMY_API_ADDRESS=pygmy
command: sh -c "cd pygmyui && gunicorn --log-file /var/log/pygmy/uierror_logs.log --access-logfile /var/log/pygmy/uiacclogs.log --bind 0.0.0.0:8000 --workers 2 pygmyui.wsgi && cd .."
depends_on:
- pygmy
volumes:
pgdata: