-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (119 loc) · 3.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
119 lines (119 loc) · 3.26 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
services:
db:
container_name: potentiel_db
image: postgres:16
volumes:
- .database/potentiel-dev.dump:/dump/potentiel-dev.dump
- .database/metabase-dev.dump:/dump/metabase-dev.dump
- .database/scripts/restore-dev-db.sh:/docker-entrypoint-initdb.d/restore-dev-db.sh
environment:
- POSTGRES_USER=postgres_admin
- POSTGRES_PASSWORD=postgres_password
- POSTGRES_MULTIPLE_DATABASES=potentiel,metabase
restart: always
ports:
- 5432:5432
profiles: ['app']
command: postgres -c 'max_connections=50'
metabase:
image: metabase/metabase:v0.53.3
container_name: metabase
ports:
- '3615:3000'
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabase
MB_DB_PORT: 5432
MB_DB_USER: metabase
MB_DB_PASS: password
MB_DB_HOST: db
MB_PASSWORD_COMPLEXITY: weak
MB_PASSWORD_LENGTH: 4
depends_on:
- db
profiles: ['app']
s3:
container_name: potentiel_s3
image: quay.io/minio/minio
command: server /data --console-address ":9090"
restart: always
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
ports:
- 9000:9000
- 9090:9090
profiles: ['app']
create_bucket:
image: minio/mc
depends_on:
- s3
entrypoint: /bin/sh -c
command:
- |
until mc alias set myminio http://s3:9000 minioadmin minioadmin; do
echo "Waiting for MinIO to be ready..."
sleep 2
done
mc ping myminio -c 1
mc mb myminio/potentiel --ignore-existing
profiles: ['app']
auth:
container_name: potentiel_auth
image: quay.io/keycloak/keycloak
restart: always
ports:
- 8080:8080
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- POTENTIEL_BASE_URL=http://localhost:3000
command: start-dev --import-realm
volumes:
- ./keycloak/import:/opt/keycloak/data/import
- ./keycloak/potentiel-keycloak/theme/potentiel:/opt/keycloak/themes/potentiel
profiles: ['app']
smtp:
container_name: potentiel_smtp
image: axllent/mailpit
restart: always
ports:
- 1025:1025
- 8025:8025
profiles: ['app']
db_test:
container_name: potentiel_db_tests_integration
image: postgres:16
volumes:
- .database/potentiel-dev.dump:/dump/potentiel-dev.dump
- .database/scripts/restore-dev-db.sh:/docker-entrypoint-initdb.d/restore-dev-db.sh
environment:
- POSTGRES_USER=postgres_admin
- POSTGRES_PASSWORD=postgres_password
- POSTGRES_MULTIPLE_DATABASES=potentiel,metabase
- POSTGRES_HOST_AUTH_METHOD=trust
restart: always
ports:
- 5433:5432
profiles: ['test']
command: postgres -c 'max_connections=30'
s3_test:
container_name: potentiel_s3_tests_integration
image: quay.io/minio/minio
command: server /data --console-address ":9090"
restart: always
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
ports:
- 9001:9000
- 9091:9090
profiles: ['test']
smtp_test:
container_name: potentiel_smtp_tests_integration
image: axllent/mailpit
restart: always
ports:
- 1026:1025
- 8026:8025
profiles: ['test']