-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.stack.yml
103 lines (91 loc) · 2.26 KB
/
docker-compose.stack.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: '3.9'
services:
frontend:
image: ghcr.io/scout-ch/thilo/thilo_frontend:latest
restart: always
environment:
- BACKEND_URL=http://localhost:3031
ports:
- 3030:3000
backend:
image: ghcr.io/scout-ch/thilo-api/thilo_api:latest
restart: always
networks:
- internal
ports:
- 3031:1337
depends_on:
- database
environment:
- NODE_ENV=production
- HOST=0.0.0.0
- PORT=1337
- CLOUDINARY_NAME=
- CLOUDINARY_KEY=
- CLOUDINARY_SECRET=
- DATABASE_HOST=database
- DATABASE_NAME=strapi
- DATABASE_USER=postgres
- DATABASE_PASSWORD=admin
linkshortner:
image: ghcr.io/scout-ch/thilo-shortener/thilo_shortener:latest
restart: always
ports:
- 8080:80
feedback:
image: getfider/fider:main
restart: always
networks:
- internal
ports:
- 9000:3000
depends_on:
- database
environment:
BASE_URL: http://localhost:9000
# Connection string to the PostgreSQL database
DATABASE_URL: postgres://postgres:admin@database:5432/fider?sslmode=disable
# Generate a 512-bit secret here https://www.allkeysgenerator.com/Random/Security-Encryption-Key-Generator.aspx
JWT_SECRET: VERY_STRONG_SECRET_SHOULD_BE_USED_HERE
# From which account e-mails will be sent
EMAIL_NOREPLY: noreply@thilo.scout.ch
###
# EMAIL
###
EMAIL_SMTP_HOST: smtp.sendgrid.net
EMAIL_SMTP_PORT: 465
EMAIL_SMTP_USERNAME: apikey
EMAIL_SMTP_PASSWORD: apikiey
EMAIL_SMTP_ENABLE_STARTTLS: 'true'
database:
image: postgres:16.0
restart: always
networks:
- internal
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=admin
- POSTGRES_DB=postgres
- PGDATA=/data/postgres
volumes:
- postgres:/data/postgres
- ./docker/init.sql:/docker-entrypoint-initdb.d/init.sql
pgadmin:
image: dpage/pgadmin4:7.7
restart: always
networks:
- internal
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@thilo.ch
PGADMIN_DEFAULT_PASSWORD: password
volumes:
- pgadmin:/var/lib/pgadmin
networks:
internal:
volumes:
postgres:
pgadmin: