-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (64 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
70 lines (64 loc) · 1.41 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
65
66
67
68
69
70
services:
backend:
build: ./backend
container_name: fuse-backend
depends_on:
- db
environment:
DATABASE_URL: postgresql+asyncpg://postgres:${ROOT_PASSWORD}@db:5432/fuse
REDIS_URL: redis://redis:6379
JWT_SECRET: ${JWT_SECRET}
networks:
- internal
restart: unless-stopped
frontend:
build: ./frontend
container_name: fuse-frontend
depends_on:
- backend
environment:
- NODE_ENV=production
networks:
- internal
restart: unless-stopped
redis:
image: redis:alpine
container_name: fuse-redis
volumes:
- redis-data:/data
networks:
- internal
restart: unless-stopped
db:
image: supabase/postgres:17.6.1.057
container_name: fuse-db
environment:
POSTGRES_PASSWORD: ${ROOT_PASSWORD}
POSTGRES_DB: fuse
POSTGRES_USER: postgres
volumes:
- ./data/db:/var/lib/postgresql/data
command: postgres -c config_file=/etc/postgresql/postgresql.conf
networks:
internal:
aliases:
- db
restart: unless-stopped
gateway:
image: nginx:alpine
container_name: fuse-gateway
depends_on:
- frontend
- backend
volumes:
- ./gateway/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- internal
ports:
- "80:80"
restart: unless-stopped
networks:
internal:
driver: bridge
volumes:
redis-data: