-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
157 lines (147 loc) · 3.86 KB
/
docker-compose.dev.yaml
File metadata and controls
157 lines (147 loc) · 3.86 KB
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
networks:
app-network:
driver: bridge
ipam:
config:
- subnet: 172.30.0.0/16
gateway: 172.30.0.1
volumes:
postgres_data_development:
pdf_tmpfs:
driver: local
driver_opts:
type: tmpfs
device: tmpfs
services:
# :: Greenmail service for email testing ::
greenmail:
image: greenmail/standalone:2.1.3
networks:
- app-network
ports:
- "25025:3025" # SMTP
- "25143:3143" # IMAP
- "25465:3465" # SMTPS
- "25993:3993" # IMAPS
- "25181:8080" # Web UI
environment:
- GREENMAIL_OPTS=
-Dgreenmail.setup.test.all
-Dgreenmail.hostname=0.0.0.0
-Dgreenmail.users=greenmail-user:EzUVrHxLVrF2@dev.offpost.no,public-entity:KjMnBvCxZq9Y@dev.offpost.no
# :: Roundcube service with MySQL backend ::
roundcube:
image: roundcube/roundcubemail:1.4.x-apache
networks:
- app-network
depends_on:
- mysql
links:
- mysql
- greenmail:greenmail
ports:
- "25080:80"
volumes:
- ./organizer/src/username-password.php:/username-password.php
- ./organizer/src/username-password-override-dev.php:/username-password-override.php
- ./roundcubemail.config.php:/var/roundcube/config/config.email-engine.inc.php
environment:
- ROUNDCUBEMAIL_DB_TYPE=mysql
- ROUNDCUBEMAIL_DB_HOST=mysql
- ROUNDCUBEMAIL_DB_USER=mail
- ROUNDCUBEMAIL_DB_PASSWORD=mail
- ROUNDCUBEMAIL_DB_NAME=roundcubemail
mysql:
image: mysql:5.6
networks:
- app-network
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: roundcubemail
MYSQL_USER: mail
MYSQL_PASSWORD: mail
phpmyadmin:
image: phpmyadmin/phpmyadmin
networks:
- app-network
ports:
- "25082:80"
links:
- mysql:db
# :: Organizer service with PostgreSQL backend ::
postgres:
image: postgres:15
networks:
- app-network
environment:
POSTGRES_DB: offpost
POSTGRES_USER: offpost
POSTGRES_PASSWORD_FILE: /run/secrets/postgres_password
volumes:
- postgres_data_development:/var/lib/postgresql/data
- ./secrets/postgres_password:/run/secrets/postgres_password:ro
ports:
- "25432:5432"
adminer:
image: adminer:5.3.0
networks:
- app-network
ports:
- "25084:8080"
depends_on:
- postgres
links:
- postgres:postgres
environment:
- ADMINER_DEFAULT_SERVER=postgres
organizer:
build: ./organizer
networks:
- app-network
ports:
- "25081:80"
depends_on:
- postgres
links:
- postgres:postgres
- mysql:mysql
- auth:auth
- greenmail:greenmail
volumes:
- ./organizer/src/username-password-override-dev.php:/username-password-override.php
- ./organizer/src:/php-frontend
- /php-frontend/vendor
- ./data/:/organizer-data
- ./data/entities.json:/organizer-data/entities.json
- ./secrets/postgres_password:/run/secrets/postgres_password:ro
- ./secrets/openai_api_key:/run/secrets/openai_api_key:ro
- pdf_tmpfs:/tmp/pdf_extraction
environment:
- ENVIRONMENT=development
- IMAP_SERVER={greenmail:3993/imap/ssl}
- IMAP_EMAIL=greenmail-user
- IMAP_PASSWORD=EzUVrHxLVrF2
- DB_HOST=postgres
- DB_PORT=5432
- DB_NAME=offpost
- DB_USER=offpost
- DB_PASSWORD_FILE=/run/secrets/postgres_password
auth:
build:
context: ./auth
args:
NODE_ENV: development
networks:
- app-network
ports:
- "25083:3000"
volumes:
- ./data/users:/data/users
- ./auth:/app
- /app/node_modules
environment:
- NODE_ENV=development
- OIDC_ISSUER_URL=http://localhost:25083
- OIDC_CLIENT_ID=organizer
- OIDC_CLIENT_SECRET=secret
- OIDC_REDIRECT_URI=http://localhost:25081/callback