-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.02 KB
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
53
54
55
56
57
58
version: "3.9"
services:
db:
image: postgres:16
container_name: postgres_db
restart: always
environment:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DB: test
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app_network
redis:
image: redis:7-alpine
container_name: redis_cache
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- app_network
app:
build: .
container_name: node_app
ports:
- "3009:3000"
depends_on:
- db
- redis
environment:
DB_HOST: db
DB_USER: test
DB_PASSWORD: test
DB_NAME: test
DB_PORT: 5432
REDIS_HOST: redis
REDIS_PORT: 6379
networks:
- app_network
volumes:
- ~/wapix-data/wwebjs_auth:/app/.wwebjs_auth
- ~/wapix-data/wwebjs_cache:/app/.wwebjs_cache
volumes:
postgres_data:
wapix_data:
redis_data:
networks:
app_network: