forked from DiceDB/playground-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (43 loc) · 921 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
services:
dicedbadmin:
image: dicedb/dicedb:latest
ports:
- "7379:7379"
healthcheck:
test: ["CMD", "PING"]
interval: 10s
timeout: 3s
retries: 3
networks:
- dice-network
dicedb:
image: dicedb/dicedb:latest
ports:
- "7380:7379"
healthcheck:
test: [ "CMD", "PING" ]
interval: 10s
timeout: 3s
retries: 3
networks:
- dice-network
backend:
build:
context: .
ports:
- "8080:8080"
depends_on:
- dicedbadmin
- dicedb
environment:
- DICEDB_ADMIN_ADDR=dicedbadmin:7379
- DICEDB_ADMIN_USERNAME=${DICEDB_ADMIN_USERNAME}
- DICEDB_ADMIN_PASSWORD=${DICEDB_ADMIN_PASSWORD}
- DICEDB_ADDR=dicedb:7379
- DICEDB_USERNAME=${DICEDB_USERNAME}
- DICEDB_PASSWORD=${DICEDB_PASSWORD}
networks:
- dice-network
networks:
dice-network:
driver: bridge