generated from moevm/nsql-clean-tempate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (56 loc) · 1.36 KB
/
docker-compose.yml
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
version: '3.9'
services:
admin:
build:
context: ./admin
dockerfile: Containerfile
ports:
- '8888:8000' # Map host port 8888 to container port 8000 (Deno app)
volumes:
- ./admin:/app:ro # Mount the local frontend directory to /app in the container
depends_on:
- backend
networks:
- app-network
frontend:
build:
context: ./frontendReact
dockerfile: Dockerfile
ports:
- '8080:80'
depends_on:
- backend
networks:
- app-network
backend:
build:
context: ./backend
dockerfile: Containerfile
ports:
- '8000:8000' # Map host port 8000 to container port 8000 (FastAPI app)
volumes:
- ./backend:/app:ro # Mount the local backend directory to /app in the container
depends_on:
- db
environment:
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=neo4jpassword
networks:
- app-network
db:
image: neo4j:latest
volumes:
- neo4j_data:/data # Persist database data
- neo4j_logs:/logs # Persist database logs
environment:
- NEO4J_AUTH=neo4j/neo4jpassword
- NEO4J_server_default__listen__address=0.0.0.0
- NEO4J_server_default__advertised__address=neo4j
networks:
- app-network
volumes:
neo4j_data:
neo4j_logs:
networks:
app-network: