-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (59 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
65 lines (59 loc) · 1.24 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
59
60
61
62
63
64
version: '3.8'
services:
postgres:
image: postgres:15-alpine
restart: unless-stopped
environment:
POSTGRES_DB: brain-storm
POSTGRES_USER: brain-storm
POSTGRES_PASSWORD: brain-storm
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- '5432:5432'
networks:
- brain-storm
redis:
image: redis:7-alpine
restart: unless-stopped
volumes:
- redis_data:/data
ports:
- '6379:6379'
networks:
- brain-storm
backend:
build:
context: ./apps/backend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- '3000:3000'
env_file:
- .env
environment:
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_USERNAME: brain-storm
DATABASE_PASSWORD: brain-storm
DATABASE_NAME: brain-storm
REDIS_HOST: redis
REDIS_PORT: 6379
volumes:
- /app/node_modules # Prevent host node_modules override
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_started
networks:
- brain-storm
volumes:
postgres_data:
driver: local
redis_data:
driver: local
networks:
brain-storm:
name: brain-storm
driver: bridge