-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 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
services:
backend:
build:
context: .
dockerfile: Dockerfile
container_name: hookrelay
restart: unless-stopped
ports:
- "3001:3001"
environment:
NODE_ENV: production
JWT_SECRET: 1323snfnsd3537509756fdhshttgggg
PORT: 3001
DATABASE_URL: postgresql://postgres:postgres@postgres:5432/appdb
REDIS_HOST: redis
REDIS_PORT: 6379
depends_on:
- postgres
- redis
networks:
- app-network
postgres:
image: postgres:15-alpine
container_name: postgres-db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: appdb
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- app-network
redis:
image: redis:7-alpine
container_name: redis-cache
restart: unless-stopped
ports:
- "6379:6379"
networks:
- app-network
volumes:
postgres-data:
networks:
app-network:
driver: bridge