This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
139 lines (129 loc) · 4.63 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
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
version: '3'
services:
conseiller:
build:
context: backoffice
container_name: backoffice
environment:
- EMAIL_CONTACT=${EMAIL_CONTACT:[email protected]}
depends_on:
- backend
ports:
- 80:80
networks:
- mee
candidat:
build:
context: front
container_name: front
environment:
- DOMAINE_PATH=${DOMAINE_PATH:-HERE-URL-TO-BACKEND-ENDPOINT}
- EMAIL_CONTACT=${EMAIL_CONTACT:[email protected]}
- API_OFFRE_SCOPE=api_offresdemploiv2 o2dsoffre
- API_DATE_NAISSANCE_SCOPE=datenaissance api_peconnect-datenaissancev1
- ESD_CLIENT_ID=${ESD_CLIENT_ID:-GET-YOUR-ESD-ID}
- ESD_CLIENT_SECRET=${ESD_CLIENT_SECRET:-GET-YOUR-ESD-SECRET}
- API_ESD_TOKEN_ENTRYPOINT=${API_ESD_TOKEN_ENTRYPOINT:-HERE-ESD-URL-TOKEN-ENTRYPOINT}
- API_ESD_URL=${API_ESD_URL:-HERE-ESD-URL}
- URL_TAG_COMMANDER=${URL_TAG_COMMANDER:-HERE-TAG-COMMANDER-URL}
- API_PE_CONNECT_SCOPE=${API_PE_CONNECT_SCOPE:-HERE-API-SCOPE}
- URL_ACEES=${URL_ACEES:-HERE-APP-URL}
- PE_CONNECT_IDENTITY_SERVER_URL=${PE_CONNECT_IDENTITY_SERVER_URL:-HERE-PE-CONNECT-ID-URL}
- MAILJET_API_KEY=${MAILJET_API_KEY:-HERE-API-KEY-XXXXXXXXX}
- MAILJET_API_SECRET_KEY=${MAILJET_API_SECRET_KEY:-HERE-API-SECRET-KEY-XXXXXXXXX}
ports:
- 4000:4000
networks:
- mee
reverse:
container_name: reverse
image: nginx
volumes:
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
ports:
- '81:80'
networks:
- mee
depends_on:
- candidat
backend:
build:
context: backend
container_name: backend
environment:
- DATA_SOURCE=jdbc:postgresql://database:5432/peactions
- DATA_SOURCE_USERNAME=peactions
- DATA_SOURCE_PASSWORD=peactions
- JWT_SECRET=peactionsSecretKey
- JWT_EXPIRATION_MS=86400000
- API_ESD_URL=${API_ESD_URL:-HERE-ESD-URL}
- API_OFFRE_SCOPE=${API_OFFRE_SCOPE:-HERE-API-OFFRE-SCOPE}
- API_ROME_SCOPE=${API_ROME_SCOPE:-HERE-API-ROME-SCOPE}
- API_DATE_NAISSANCE_SCOPE=${API_DATE_NAISSANCE_SCOPE:-HERE-API-DATE-NAISS-SCOPE}
- ESD_CLIENT_ID=${ESD_CLIENT_ID:-GET-YOUR-ESD-ID}
- ESD_CLIENT_SECRET=${ESD_CLIENT_SECRET:-GET-YOUR-ESD-SECRET}
- API_ESD_TOKEN_ENTRYPOINT=${API_ESD_TOKEN_ENTRYPOINT:-HERE-ESD-URL-TOKEN-ENTRYPOINT}
- MAILJET_API_KEY=${MAILJET_API_KEY:-HERE-API-KEY-XXXXXXXXX}
- MAILJET_API_SECRET_KEY=${MAILJET_API_SECRET_KEY:-HERE-API-SECRET-KEY-XXXXXXXXX}
- MAILJET_ID_TEMPLATE_EMAIL_CONFIRMATION=${MAILJET_ID_TEMPLATE_EMAIL_CONFIRMATION:-01234}
- MAILJET_ID_TEMPLATE_EMAIL_CONFIRMATION_DISTANCE_SANS_URL=${MAILJET_ID_TEMPLATE_EMAIL_CONFIRMATION_DISTANCE_SANS_URL:-01234}
- MAILJET_ID_TEMPLATE_EMAIL_CONFIRMATION_DISTANCE_AVEC_URL=${MAILJET_ID_TEMPLATE_EMAIL_CONFIRMATION_DISTANCE_AVEC_URL:-01234}
- MAILJET_ID_TEMPLATE_EMAIL_ANNULATION=${MAILJET_ID_TEMPLATE_EMAIL_ANNULATION:-01234}
- MAILJET_ID_TEMPLATE_EMAIL_RAPPEL_DISTANCE=${MAILJET_ID_TEMPLATE_EMAIL_RAPPEL_DISTANCE:-01234}
- MAILJET_ID_TEMPLATE_EMAIL_RAPPEL_PRESENTIEL=${MAILJET_ID_TEMPLATE_EMAIL_RAPPEL_PRESENTIEL:-01234}
- MAIL_TO_REDIRECT=${MAIL_TO_REDIRECT:[email protected]}
- ENVIRONNEMENT_PRODUCTION=${ENVIRONNEMENT_PRODUCTION:-true}
- REDIRECT_URI=${REDIRECT_URI:-HERE-API-REDIREC-URI}
- CANDIDAT_ENTRYPOINT={$CANDIDAT_ENTRYPOINT:-HERE-CANDIDAT-ENTRYPOINT}
- HIBERNATE_LOG_LEVEL=DEBUG
- HIBERNATE_SQL_BINDER=TRACE
- LOG_LEVEL=DEBUG
- SITE_CANDIDAT_URL=http://localhost:4000
depends_on:
- flyway
ports:
- 8080:8080
networks:
- mee
database:
build:
context: bdd
container_name: database
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER:-peactions}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-peactions}
- POSTGRES_DB=${POSTGRES_DB:-peactions}
ports:
- 5400:5432
volumes:
- ./bdd/database:/var/lib/postgresql/data
networks:
- mee
flyway:
image: flyway/flyway:latest
container_name: flyway
environment:
- FLYWAY_USER=${FLYWAY_USER:-peactions}
- FLYWAY_PASSWORD=${FLYWAY_PASSWORD:-peactions}
- FLYWAY_URL=jdbc:postgresql://database:5432/peactions
- FLYWAY_SCHEMAS=public
- FLYWAY_BASELINE_ON_MIGRATE=true
- FLYWAY_GROUP=true
- FLYWAY_LICENSE_KEY=community
- FLYWAY_EDITION=community
command: -connectRetries=60 migrate
volumes:
- ./bdd/sql:/flyway/sql
networks:
- mee
depends_on:
- database
volumes:
database:
networks:
mee:
ipam:
driver: default
#config:
# - subnet: 172.18.1.0/24