docker-compose.yml 1.8 KB
Newer Older
1
2
3
version: '3.1'

services:
4
  middleware-legacy-auth:
5
    build: .
6
    image: registry.forge.grandlyon.com/web-et-numerique/web-et-numerique-internet/data.grandlyon.com/web-portal/components/middlewares/legacy-auth:${TAG}
7
    ports:
8
      - ${MIDDLEWARE_LEGACY_SERVICE_BIND_PORT}:3000
9
    environment:
10
11
12
13
14
15
      - LEGACY_AUTH_SERVICE_URL=${LEGACY_AUTH_SERVICE_URL}
      - ADMIN_PASSWORD=${ADMIN_PASSWORD}
      - ADMIN_USERNAME=${ADMIN_USERNAME}
      - SERVICE_EMAIL_URL=${SERVICE_EMAIL_URL}
      - USER_SUPPORT_MAILBOX=${USER_SUPPORT_MAILBOX}
      - FRONT_END_URL=${FRONT_END_URL}
FORESTIER Fabien's avatar
FORESTIER Fabien committed
16
      - VALIDATE_ACCOUNT_URI=connexion
17
      - PASSWORD_RESET_URI=reinitialiser-mon-mot-de-passe
18
      - API_KEY=${API_KEY}
19
      - ACCESS_TOKEN_COOKIE_KEY=${ACCESS_TOKEN_COOKIE_KEY}
20
      - IMAGE_HOST=https://minio.alpha.grandlyon.com/email-template-assets
21
      - REDIS_SENTINEL_HOST=redis-sentinel-1
22
      - REDIS_SENTINEL_PORT=26379
23
      - REDIS_GROUP_NAME=mymaster
24
25
    restart: unless-stopped
    depends_on:
26
27
28
29
30
31
32
      - redis-sentinel-1

  redis-master:
    image: 'bitnami/redis:latest'
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    ports:
33
      - '${REDIS_MASTER_PORT}:6379'
34
35
36
37
38
39
40
    volumes:
      - redis-master:/bitnami/redis/data

  redis-sentinel-1:
    image: 'bitnami/redis-sentinel:latest'
    environment:
      - REDIS_MASTER_HOST=redis-master
41
      - REDIS_MASTER_SET=mymaster
42
    ports:
43
      - '${REDIS_SENTINEL_PORT}:26379'
44
45
46
47
48
49
50
51
52
    volumes:
      - redis-sentinel-1:/bitnami/redis/data

  redis-slave-1:
    image: 'bitnami/redis:latest'
    command: redis-server --bind 0.0.0.0 --slaveof redis-master 6379 --dir /bitnami/redis/data
    environment:
      - ALLOW_EMPTY_PASSWORD=yes
    ports:
53
      - '${REDIS_SLAVE_PORT}:6379'
54
    volumes:
55
      - redis-slave-1:/bitnami/redis/data
56

57
volumes:
58
59
60
  redis-master:
  redis-sentinel-1:
  redis-slave-1:
61

62