-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
42 lines (39 loc) · 1.05 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
version: "3.2"
services:
redis:
image:
${TERRA_DOCKER_REPO}:redis_${TERRA_USERNAME}
build:
context: .
dockerfile: docker/redis.Dockerfile
environment:
- DOCKER_UID=${TERRA_UID}
- DOCKER_GIDS=${TERRA_GIDS}
- DOCKER_GROUP_NAMES=${TERRA_GROUP_NAMES}
- DOCKER_USERNAME=user
- JUSTFILE=${TERRA_TERRA_DIR_DOCKER}/docker/redis.Justfile
- JUST_SETTINGS=${TERRA_TERRA_DIR_DOCKER}/terra.env
- TZ
volumes:
# vsi_common
- type: ${TERRA_TERRA_DIR_TYPE}
source: ${TERRA_TERRA_DIR}/external/vsi_common
target: /vsi
read_only: true
- type: ${TERRA_REDIS_DIR_TYPE}
source: ${TERRA_REDIS_DIR}
target: ${TERRA_REDIS_DIR_DOCKER}
ports:
- "${TERRA_REDIS_PORT}:${TERRA_REDIS_PORT_DOCKER}"
secrets:
- source: redis_secret
target: ${TERRA_REDIS_SECRET}
networks:
default:
aliases:
- ${TERRA_REDIS_HOSTNAME_DOCKER}
secrets:
redis_secret:
file: ${TERRA_REDIS_SECRET_FILE}
volumes:
terra-redis: