-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 950 Bytes
/
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
version: '3'
services:
nodejs:
build:
context: .
dockerfile: Dockerfile
image: nodejs
container_name: bracket-hub
restart: unless-stopped
env_file: .env
environment:
- DB_USER =$DB_USER
- DB_PASSWORD =$DB_PASSWORD
- JWTSECRET =$JWTSECRET
- PORT =$PORT
ports:
- "8080:8080"
volumes:
- .:/home/node/app
networks:
- app-network
command: ./bin/wait-for.sh db:9042 -- /home/node/app/node_modules/.bin/nodemon index.js
db:
image: cassandra
container_name: db
restart: unless-stopped
ports:
- 9042:9042
# volumes:
# - dbdata:/data/db
volumes:
- dbdata:/bin/db/ks1.cql
command: /bin/sh -c "echo loading cassandra keyspace && cqlsh cassandra -f /ks1.cql"
networks:
- app-network
# entrypoint: ["./bin/init.sh"]
networks:
app-network:
driver: bridge
volumes:
dbdata:
node_modules: