-
Notifications
You must be signed in to change notification settings - Fork 303
/
docker-compose.override.yml
47 lines (47 loc) · 1.2 KB
/
docker-compose.override.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
# Extends the configuration for development (inits and mounting directory into core)
version: '3'
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',
]
scyllainit:
image: scylladb/scylla
depends_on:
- scylla
volumes:
- .:/usr/src
container_name: odota-scyllainit
entrypoint:
[
'bash',
'-c',
'sleep 10 && cqlsh -f /usr/src/sql/init.cql odota-scylla && cqlsh -f /usr/src/sql/create_tables.cql -k yasp odota-scylla',
]
minioinit:
image: minio/mc
depends_on:
- minio
volumes:
- .:/usr/src
container_name: odota-minioinit
entrypoint: >
/bin/sh -c "
/usr/bin/mc mb opendota-blobs;
/usr/bin/mc mb opendota;
/usr/bin/mc mb opendota-players;
exit 0;
"
core:
entrypoint: bash scripts/launch.sh
volumes:
- .:/usr/src