forked from GZMaster/synapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (33 loc) · 825 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (33 loc) · 825 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
version: '3'
services:
fastapi-app:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:80"
environment:
- HOST=0.0.0.0
- PORT=80
depends_on:
- redis
networks:
- fastapi-network
redis:
image: "redis:alpine"
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf # Mount the config file
command: ["redis-server", "/usr/local/etc/redis/redis.conf"] # Specify the config file path in the command
networks:
- fastapi-network
node-express:
build:
context: ./backend
dockerfile: Dockerfile # Replace this with your Node.js Dockerfile path
ports:
- "3000:3000" # Adjust the ports as needed for your Node.js app
networks:
- fastapi-network
networks:
fastapi-network:
driver: bridge