-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
52 lines (50 loc) · 972 Bytes
/
compose.yaml
File metadata and controls
52 lines (50 loc) · 972 Bytes
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
name: 42fm
services:
server:
build:
context: .
command: yarn dev:docker
ports:
- "5000:5000"
develop:
watch:
- action: sync+restart
path: ./
target: /app
- action: rebuild
path: ./package.json
target: /app
environment:
- REDIS_URL=redis://redis:6379/0
- DB_HOST=postgres
- DB_NAME=test
- DB_PASSWORD=test
- DB_USERNAME=test
env_file:
- .env
links:
- redis
- postgres
depends_on:
- redis
- postgres
redis:
image: redis
command: redis-server --notify-keyspace-events Kx
volumes:
- redisDB:/data
ports:
- "6379:6379"
postgres:
image: postgres:17
ports:
- "5432:5432"
environment:
POSTGRES_DB: "test"
POSTGRES_USER: "test"
POSTGRES_PASSWORD: "test"
volumes:
- progresDB:/var/lib/postgresql/data
volumes:
progresDB:
redisDB: