-
Notifications
You must be signed in to change notification settings - Fork 83
/
docker-compose.yml
145 lines (136 loc) · 3.41 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
140
141
142
143
144
145
services:
elasticsearch:
image: "${ELASTICSEARCH_IMAGE:-docker.elastic.co/elasticsearch/elasticsearch:7.14.0}"
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
healthcheck:
test: ["CMD", "echo", "''", ">", "/dev/tcp/127.0.0.1/9200", "||", "exit", "1"]
interval: 1s
timeout: 2s
retries: 300
app:
build:
context: .
target: development
args:
DOCKER_USER: ${DOCKER_USER:-1000}
image: richie:development
env_file:
- env.d/development/common
- env.d/development/${DEV_ENV_FILE:-dev}
- env.d/development/${DB_HOST:-postgresql}
networks:
default:
aliases:
- app-service
volumes:
- .:/app
- ./data/static:/data/static
- ./data/media:/data/media
- ./data/smedia:/data/smedia
depends_on:
elasticsearch:
condition: service_started
redis-sentinel:
condition: service_started
stdin_open: true
tty: true
healthcheck:
test: ["CMD", "echo", "''", ">", "/dev/tcp/127.0.0.1/8000", "||", "exit", "1"]
interval: 1s
timeout: 2s
retries: 3600
nginx:
image: nginx
ports:
- "8070:8070"
networks:
default:
aliases:
- nginx
lms_outside:
aliases:
- richie
volumes:
- ./docker/files/etc/nginx/${NGINX_CONF:-conf.d}:/etc/nginx/conf.d:ro
depends_on:
- app
storybook:
image: node:20.11
ports:
- "8076:6006"
working_dir: /app/src/frontend
command: npm run storybook
environment:
- HOME=/tmp
user: "${DOCKER_USER:-1000}"
volumes:
- .:/app
frontend:
image: node:20.11
working_dir: /app/src/frontend
user: "${DOCKER_USER:-1000}"
volumes:
- .:/app
crowdin:
image: crowdin/cli:4.0.0
volumes:
- ".:/app"
env_file:
- env.d/development/crowdin
user: "${DOCKER_USER:-1000}"
working_dir: /app
redis-sentinel:
image: docker.io/bitnami/redis-sentinel:6.0-debian-10
depends_on:
- redis-primary
- redis-replica1
- redis-replica2
environment:
- REDIS_MASTER_HOST=redis-primary
healthcheck:
test: ["CMD-SHELL", "redis-cli -p 26379 ping | grep PONG"]
interval: 1s
timeout: 2s
retries: 300
redis-primary:
image: docker.io/bitnami/redis:6.0-debian-10
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_REPLICATION_MODE=master
healthcheck:
test: ["CMD-SHELL", "redis-cli -p 6379 ping | grep PONG"]
interval: 1s
timeout: 2s
retries: 300
redis-replica1:
image: docker.io/bitnami/redis:6.0-debian-10
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis-primary
depends_on:
- redis-primary
healthcheck:
test: ["CMD-SHELL", "redis-cli -p 6379 ping | grep PONG"]
interval: 1s
timeout: 2s
retries: 300
redis-replica2:
image: docker.io/bitnami/redis:6.0-debian-10
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_REPLICATION_MODE=slave
- REDIS_MASTER_HOST=redis-primary
depends_on:
- redis-primary
healthcheck:
test: ["CMD-SHELL", "redis-cli -p 6379 ping | grep PONG"]
interval: 1s
timeout: 2s
retries: 300
networks:
lms_outside:
driver: bridge
name: "${RICHIE_LMS_NETWORK:-edx-lms-outside}"