-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
112 lines (102 loc) · 2.23 KB
/
docker-compose.yml
File metadata and controls
112 lines (102 loc) · 2.23 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
services:
# ======================
# Frontends
# ======================
manufacturer-frontend:
build: ./EY-Manufacturer-frontend
ports:
- "3005:80"
networks:
- ey-network
depends_on:
- backend
oem-frontend:
build: ./EY-OEM-frontend
ports:
- "3001:80"
networks:
- ey-network
depends_on:
- backend
customer-frontend:
build: ./EY-customer-frontend
ports:
- "3000:80"
networks:
- ey-network
depends_on:
- backend
# ======================
# Backend
# ======================
backend:
build: ./EY-Backend
ports:
- "8000:8000"
env_file:
- .env
environment:
PYTHONUNBUFFERED: "1"
DATABASE_URL: postgresql://user:password@db:5432/ey_telematics_db
depends_on:
- db
networks:
- ey-network
# ======================
# Database
# ======================
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: ey_telematics_db
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- ey-network
# ======================
# n8n (Cloudflare Tunnel)
# ======================
n8n:
image: docker.n8n.io/n8nio/n8n:2.0.0
container_name: n8n
restart: unless-stopped
env_file:
- .env
environment:
N8N_BASIC_AUTH_ACTIVE: true
N8N_BASIC_AUTH_USER: admin
N8N_BASIC_AUTH_PASSWORD: password
DB_TYPE: postgresdb
DB_POSTGRESDB_HOST: db
DB_POSTGRESDB_PORT: 5432
DB_POSTGRESDB_DATABASE: ey_telematics_db
DB_POSTGRESDB_USER: user
DB_POSTGRESDB_PASSWORD: password
volumes:
- n8n_data:/home/node/.n8n
networks:
- ey-network
depends_on:
- db
# ======================
# Cloudflared (existing tunnel)
# ======================
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
restart: unless-stopped
command: tunnel --config /etc/cloudflared/config.yml run
volumes:
- ./cloudflared:/etc/cloudflared:ro
networks:
- ey-network
depends_on:
- n8n
volumes:
postgres_data:
n8n_data:
networks:
ey-network:
driver: bridge