-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
52 lines (51 loc) · 1015 Bytes
/
compose.yaml
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
services:
zookeeper:
image: "bitnami/zookeeper:latest"
expose:
- 2181
volumes:
- ./zookeeper_data:/bitnami
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
networks:
- tiny-url-network
cassandra:
image: "bitnami/cassandra:latest"
environment:
- CASSANDRA_CLUSTER_NAME=mycluster
expose:
- 9042
volumes:
- ./cassandra_data:/bitnami
networks:
- tiny-url-network
backend:
build:
context: apps/backend
dockerfile: Dockerfile
args:
- NODE_ENV=production
expose:
- 5000
volumes:
- ./apps/backend:/app
- /app/node_modules
env_file: apps/backend/.env
depends_on:
- cassandra
- zookeeper
networks:
- tiny-url-network
nginx:
image: "nginx:latest"
ports:
- "80:80"
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
depends_on:
- backend
networks:
- tiny-url-network
networks:
tiny-url-network:
driver: bridge