-
Notifications
You must be signed in to change notification settings - Fork 313
Expand file tree
/
Copy pathdocker-compose.override.yml
More file actions
45 lines (45 loc) · 1.17 KB
/
docker-compose.override.yml
File metadata and controls
45 lines (45 loc) · 1.17 KB
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
# Extends the configuration for development (inits and mounting directory into core)
services:
postgresinit:
image: postgres
depends_on:
- postgres
volumes:
- .:/usr/src
container_name: odota-postgresinit
entrypoint:
[
"bash",
"-c",
"sleep 10 && psql --file /usr/src/sql/init.sql postgres://postgres:postgres@odota-postgres/postgres && psql --file /usr/src/sql/create_tables.sql postgres://postgres:postgres@odota-postgres/yasp",
]
cassandrainit:
image: cassandra
depends_on:
- cassandra
volumes:
- .:/usr/src
container_name: odota-cassandrainit
entrypoint:
[
"bash",
"-c",
"sleep 45 && cqlsh -f /usr/src/sql/init.cql odota-cassandra && cqlsh -f /usr/src/sql/create_tables.cql -k yasp odota-cassandra",
]
minioinit:
image: minio/mc
depends_on:
- minio
container_name: odota-minioinit
entrypoint: >
/bin/sh -c "
sleep 30;
/usr/bin/mc mb opendota-blobs;
/usr/bin/mc mb opendota;
/usr/bin/mc mb opendota-players;
exit 0;
"
core:
volumes:
- .:/usr/src
- /usr/src/node_modules