-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
96 lines (92 loc) · 2.45 KB
/
docker-compose.yaml
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
86
87
88
89
90
91
92
93
94
95
96
services:
db:
image: postgres:15
restart: always
container_name: db
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- 5432:5432
volumes:
- ./gregory/postgres-data:/var/lib/postgresql/data
networks:
- gregory_network
node-red:
image: nodered/node-red:latest
restart: always
container_name: node-red
environment:
- TZ=Europe/Lisbon
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- DB_HOST=${DB_HOST}
ports:
- "1880:1880"
networks:
- gregory_network
volumes:
- ./gregory/nodered-data:/data
gregory:
container_name: gregory
image: amaralbruno/gregory-ai:latest
restart: always
# build:
# context: gregory/django/
# dockerfile: Dockerfile
# used for local development
# command: python manage.py runserver 0.0.0.0:8000
command: gunicorn --workers 4 --threads 2 --log-level debug -b 0.0.0.0:8000 admin.wsgi
volumes:
- ./gregory/django:/code
ports:
- "8000:8000"
environment:
- DB_HOST=db
- DOMAIN_NAME=${DOMAIN_NAME}
- EMAIL_DOMAIN=${EMAIL_DOMAIN}
- EMAIL_HOST_PASSWORD=${EMAIL_HOST_PASSWORD}
- EMAIL_HOST_USER=${EMAIL_HOST_USER}
- EMAIL_HOST=${EMAIL_HOST}
- EMAIL_MAILGUN_API_URL=${EMAIL_MAILGUN_API_URL}
- EMAIL_MAILGUN_API=${EMAIL_MAILGUN_API}
- EMAIL_PORT=${EMAIL_PORT}
- EMAIL_USE_TLS=${EMAIL_USE_TLS}
- ORCID_ClientID=${ORCID_ClientID}
- ORCID_ClientSecret=${ORCID_ClientSecret}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- SECRET_KEY=${SECRET_KEY}
- FERNET_SECRET_KEY=${FERNET_SECRET_KEY}
networks:
- gregory_network
depends_on:
- db
metabase:
container_name: metabase
volumes:
- ./metabase-data:/metabase-data
environment:
- MB_DB_TYPE=postgres
- MB_DB_DBNAME=metabase
- MB_DB_PORT=5432
- MB_DB_USER=${POSTGRES_USER}
- MB_DB_PASS=${POSTGRES_PASSWORD}
- MB_DB_HOST=${DB_HOST}
ports:
- 3000:3000
image: metabase/metabase
restart: always
depends_on:
- db
networks:
- gregory_network
networks:
gregory_network:
external: false
name: gregory_network
default:
driver: bridge