-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) · 1.21 KB
/
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
47
48
version: '3.7'
services:
server:
build: .
restart: unless-stopped
environment:
NODE_ENV: production
DB_HOST: postgres
DB_PORT: 5432
DB_NAME: postgres
DB_PASSWORD: postgres
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: redis
PORT: '8080'
ROULETTE_FULL_ROUND_TIME: 20
ROULETTE_ALLOW_BET_TIME: 15
ports:
- '8080:8080'
depends_on:
- postgres
- redis
postgres:
image: postgres:14.3
restart: unless-stopped
environment:
- POSTGRES_USERNAME=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: docker.io/bitnami/redis:6.2
restart: unless-stopped
environment:
REDIS_PASSWORD: redis
REDIS_DISABLE_COMMANDS: FLUSHDB,FLUSHALL
ports:
- '6379:6379'
volumes:
- 'redis_data:/bitnami/redis/data'
volumes:
postgres_data:
driver: local
redis_data:
driver: local