-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
96 lines (95 loc) · 2.53 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
88
89
90
91
92
93
94
95
96
version: '3'
services:
db:
container_name: potentiel_db
image: postgres:13
volumes:
- .database/potentiel-dev.dump:/dump/potentiel-dev.dump
- .database/restore-dev-db.sh:/docker-entrypoint-initdb.d/restore-dev-db.sh
environment:
- POSTGRES_USER=potadmindb
- POSTGRES_PASSWORD=localpwd
- POSTGRES_DB=potentiel
restart: always
ports:
- 5432:5432
profiles: ['app']
eventBus:
container_name: potentiel_eventBus
image: redis:alpine
command: redis-server --requirepass localpwd
restart: always
ports:
- 6379:6379
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:
- |
mc alias set myminio http://s3:9000 minioadmin minioadmin
mc ping myminio -c 1
mc mb myminio/potentiel
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']
db_test:
container_name: potentiel_db_tests_integration
image: postgres:13
volumes:
- .database/potentiel-dev.dump:/dump/potentiel-dev.dump
- .database/restore-dev-db.sh:/docker-entrypoint-initdb.d/restore-dev-db.sh
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
- POSTGRES_USER=testuser
- POSTGRES_DB=potentiel_test
restart: always
ports:
- 5433:5432
profiles: ['test']
eventBus_test:
container_name: potentiel_eventBus_tests_integration
image: redis:alpine
restart: always
ports:
- 6380:6379
profiles: ['test']
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']