forked from MTES-MCT/potentiel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (85 loc) · 2.22 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
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
version: '3'
services:
db:
image: postgres:13
environment:
- POSTGRES_USER=potadmindb
- POSTGRES_PASSWORD=localpwd
- POSTGRES_DB=potentiel
restart: always
container_name: potentiel_db
ports:
- 5432:5432
profiles: [ "app" ]
eventBus:
image: redis:alpine
command: redis-server --requirepass localpwd
restart: always
container_name: potentiel_eventBus
ports:
- 6379:6379
profiles: [ "app" ]
s3:
image: quay.io/minio/minio
command: server /data --console-address ":9090"
restart: always
container_name: potentiel_s3
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 " /usr/bin/mc alias set myminio http://s3:9000 minioadmin minioadmin; /usr/bin/mc mb myminio/potentiel; exit 0; "
profiles: [ "app" ]
auth:
image: quay.io/keycloak/keycloak
restart: always
container_name: potentiel_auth
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" ]
db_test:
image: postgres:13
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=testuser
- POSTGRES_DB=potentiel_test
restart: always
container_name: potentiel_db_tests_integration
ports:
- 5433:5432
profiles: [ "test" ]
eventBus_test:
image: redis:alpine
restart: always
container_name: potentiel_eventBus_tests_integration
ports:
- 6380:6379
profiles: [ "test" ]
s3_test:
image: quay.io/minio/minio
command: server /data --console-address ":9091"
restart: always
container_name: potentiel_s3_tests_integration
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin
ports:
- 9001:9000
- 9091:9090
profiles: [ "test" ]