forked from openfun/richie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
118 lines (105 loc) · 2.59 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
version: "3.5"
services:
postgresql:
image: postgres:9.6
env_file:
- env.d/development/postgresql
mysql:
image: mysql:5.6
env_file:
- env.d/development/mysql
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
elasticsearch:
image: "${ELASTICSEARCH_IMAGE:-docker.elastic.co/elasticsearch/elasticsearch:7.14.0}"
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
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:
- "${DB_HOST:-postgresql}"
- "elasticsearch"
stdin_open: true
tty: true
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
node:
image: circleci/node:14
working_dir: /app/src/frontend
user: "${DOCKER_USER:-1000}"
volumes:
- .:/app
crowdin:
image: crowdin/cli:3.5.5
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
redis-primary:
image: docker.io/bitnami/redis:6.0-debian-10
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_REPLICATION_MODE=master
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
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
dockerize:
image: jwilder/dockerize
networks:
lms_outside:
driver: bridge
name: "${RICHIE_LMS_NETWORK:-edx_outside}"