-
Notifications
You must be signed in to change notification settings - Fork 303
/
docker-compose.override.yml
46 lines (46 loc) · 1.27 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
# 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',
]
cassandrainit:
image: cassandra
depends_on:
- cassandra
volumes:
- .:/usr/src
container_name: odota-cassandrainit
entrypoint:
[
'bash',
'-c',
'sleep 80 && cqlsh -f /usr/src/sql/init.cql odota-cassandra && cqlsh -f /usr/src/sql/create_tables.cql -k yasp odota-cassandra',
]
# 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',
# ]
core:
entrypoint: bash scripts/launch.sh
volumes:
- .:/usr/src