@cerema/cadriciel 1.6.2-beta → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+
2
+ MINIO_URL=localhost
3
+ MINIO_ROOT_USER=minioadmin
4
+ MINIO_ROOT_PASSWORD=minioadmin
5
+
6
+ POSTGRES_DB=sysadyp
7
+ POSTGRES_PASSWORD=password
8
+ PG_USER=postgres
9
+
10
+ REDIS_PASSWORD=password
11
+ KEYCLOAK_ADMIN_USER=admin
12
+ KEYCLOAK_ADMIN_PASSWORD=dreammotion
13
+
14
+ DOCKER_REGISTRY=cerema
15
+ PROJECT_NAME=sysadyp
16
+ VERSION=latest
17
+
18
+ # CADRICIEL
19
+ CADRICIEL_PG_DB="postgres://postgres:password@postgres:5432/sysadyp"
20
+ CADRICIEL_PG_DBAPI="postgres://postgres:password@postgres:5432/sysadyp"
21
+ CADRICIEL_PG_DB_SCHEMA="sysadyp"
22
+ CADRICIEL_API_PORT=3000
23
+ CADRICIEL_APP_PORT=4200
24
+ CADRICIEL_AUTH_STRATEGY="guest"
25
+ CADRICIEL_ORION_URI="http://localhost:9090"
26
+ CADRICIEL_ORION_REALM="62540d37-7443-44e2-be54-2b402e899660"
27
+
@@ -0,0 +1,209 @@
1
+ services:
2
+ minio:
3
+ image: quay.io/minio/minio:latest
4
+ platform: linux/amd64
5
+ container_name: minio
6
+ command: server /data --console-address ":9001"
7
+ ports:
8
+ - "9000:9000"
9
+ - "9001:9001"
10
+ environment:
11
+ MINIO_ROOT_USER: ${MINIO_ROOT_USER}
12
+ MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
13
+ volumes:
14
+ - minio_data:/data
15
+ restart: unless-stopped
16
+ networks:
17
+ - app_network
18
+
19
+ postgres:
20
+ image: poadio/postgres-base:latest
21
+ platform: linux/amd64
22
+ container_name: postgres
23
+ ports:
24
+ - "5432:5432"
25
+ environment:
26
+ POSTGRES_DB: ${POSTGRES_DB}
27
+ POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
28
+ PG_USER: ${PG_USER}
29
+ volumes:
30
+ - postgres_data:/var/lib/postgresql/data
31
+ - ./init-db:/docker-entrypoint-initdb.d
32
+ # Le Healthcheck est crucial pour Flyway
33
+ healthcheck:
34
+ test: ["CMD-SHELL", "pg_isready -U ${PG_USER} -d ${POSTGRES_DB}"]
35
+ interval: 5s
36
+ timeout: 5s
37
+ retries: 5
38
+ restart: unless-stopped
39
+ networks:
40
+ - app_network
41
+
42
+ flyway:
43
+ image: flyway/flyway:latest
44
+ container_name: flyway_migration
45
+ environment:
46
+ FLYWAY_URL: jdbc:postgresql://postgres:5432/${POSTGRES_DB}
47
+ FLYWAY_USER: ${PG_USER}
48
+ FLYWAY_PASSWORD: ${POSTGRES_PASSWORD}
49
+ FLYWAY_CONNECT_RETRIES: 10
50
+ FLYWAY_BASELINE_ON_MIGRATE: "true"
51
+ command: -connectRetries=60 migrate
52
+ volumes:
53
+ - ../backend/db/migration:/flyway/sql
54
+ depends_on:
55
+ postgres:
56
+ condition: service_healthy
57
+ networks:
58
+ - app_network
59
+
60
+ redis:
61
+ image: redis:latest
62
+ platform: linux/amd64
63
+ container_name: redis
64
+ ports:
65
+ - "6379:6379"
66
+ environment:
67
+ REDIS_PASSWORD: ${REDIS_PASSWORD}
68
+ command:
69
+ [
70
+ "redis-server",
71
+ "--requirepass",
72
+ "${REDIS_PASSWORD}",
73
+ "--stop-writes-on-bgsave-error",
74
+ "no",
75
+ ]
76
+ volumes:
77
+ - redis_data:/data
78
+ restart: unless-stopped
79
+ networks:
80
+ - app_network
81
+
82
+ keycloak:
83
+ image: cerema/orion-cadriciel
84
+ platform: linux/amd64
85
+ container_name: keycloak
86
+ command: start-dev --import-realm
87
+ environment:
88
+ KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN_USER}
89
+ KEYCLOAK_ADMIN_PASSWORD: ${KEYCLOAK_ADMIN_PASSWORD}
90
+ KC_DB: postgres
91
+ KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
92
+ KC_DB_USERNAME: ${PG_USER}
93
+ KC_DB_PASSWORD: ${POSTGRES_PASSWORD}
94
+ KC_HTTP_ENABLED: "true"
95
+ KC_HOSTNAME: localhost
96
+ KC_HOSTNAME_STRICT: "false"
97
+ KC_HOSTNAME_STRICT_HTTPS: "false"
98
+ PROXY_ADDRESS_FORWARDING: "true"
99
+ KEYCLOAK_IMPORT: /tmp/realm-export.json
100
+ ports:
101
+ - "9090:8080"
102
+ volumes:
103
+ - keycloak_data:/opt/jboss/keycloak/standalone/data
104
+ depends_on:
105
+ postgres:
106
+ condition: service_healthy
107
+ networks:
108
+ - app_network
109
+
110
+ #worker:
111
+ # build:
112
+ # context: ..
113
+ # dockerfile: docker/Dockerfile
114
+ # container_name: worker
115
+ # command: ["npm", "run", "dev:worker"]
116
+ # environment:
117
+ # CADRICIEL_SESSION: "redis://:${REDIS_PASSWORD}@redis:6379"
118
+ # DB_HOST: postgres
119
+ # POSTGRES_HOST: postgres
120
+ # POSTGRES_PORT: 5432
121
+ # POSTGRES_DB: ${POSTGRES_DB}
122
+ # POSTGRES_USER: ${PG_USER}
123
+ # POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
124
+ # volumes:
125
+ # - ..:/app
126
+ # - /app/node_modules
127
+ # depends_on:
128
+ # postgres:
129
+ # condition: service_healthy
130
+ # flyway:
131
+ # condition: service_completed_successfully # Attend la fin des migrations
132
+ # redis:
133
+ # condition: service_started
134
+ # networks:
135
+ # - app_network
136
+ #
137
+ #api:
138
+ # build:
139
+ # context: ..
140
+ # dockerfile: docker/Dockerfile
141
+ # container_name: api
142
+ # command: ["npm", "run", "dev:backend"]
143
+ # ports:
144
+ # - "3000:8080"
145
+ # environment:
146
+ # CADRICIEL_SESSION: "redis://:${REDIS_PASSWORD}@redis:6379"
147
+ # DB_HOST: postgres
148
+ # POSTGRES_HOST: postgres
149
+ # POSTGRES_PORT: 5432
150
+ # POSTGRES_DB: ${POSTGRES_DB}
151
+ # POSTGRES_USER: ${PG_USER}
152
+ # POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
153
+ # API_PORT: 8080
154
+ # # CADRICIEL
155
+ # CADRICIEL_PG_DB: "postgres://${PG_USER}:${POSTGRES_PASSWORD}@postgres/${POSTGRES_DB}"
156
+ # CADRICIEL_PG_DBAPI: "postgres://${PG_USER}:${POSTGRES_PASSWORD}@postgres/${POSTGRES_DB}"
157
+ # CADRICIEL_PG_DB_SCHEMA: "${POSTGRES_DB}"
158
+ # CADRICIEL_API_PORT: 3000
159
+ # CADRICIEL_APP_PORT: 4200
160
+ # CADRICIEL_AUTH_STRATEGY: "guest"
161
+ # CADRICIEL_ORION_URI: "${CADRICIEL_ORION_URI}"
162
+ # CADRICIEL_ORION_REALM: "${CADRICIEL_ORION_REALM}"
163
+ # volumes:
164
+ # - ..:/app
165
+ # - /app/node_modules
166
+ # depends_on:
167
+ # postgres:
168
+ # condition: service_healthy
169
+ # flyway:
170
+ # condition: service_completed_successfully # Attend la fin des migrations
171
+ # redis:
172
+ # condition: service_started
173
+ # networks:
174
+ # - app_network
175
+ #
176
+ #frontend:
177
+ # build:
178
+ # context: ..
179
+ # dockerfile: docker/Dockerfile
180
+ # container_name: frontend
181
+ # ports:
182
+ # - "4200:4200"
183
+ # command:
184
+ # [
185
+ # "./node_modules/.bin/ng",
186
+ # "serve",
187
+ # "--host",
188
+ # "0.0.0.0",
189
+ # "--disable-host-check",
190
+ # "--poll",
191
+ # "2000",
192
+ # ]
193
+ # volumes:
194
+ # - ..:/app
195
+ # - /app/node_modules
196
+ # networks:
197
+ # - app_network
198
+
199
+ volumes:
200
+ minio_data:
201
+ postgres_data:
202
+ redis_data:
203
+ keycloak_data:
204
+
205
+ networks:
206
+ app_network:
207
+ driver: bridge
208
+ name: sysadyp_app_network
209
+ external: true
@@ -0,0 +1 @@
1
+ CREATE DATABASE keycloak;