-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (71 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
76 lines (71 loc) · 1.7 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
services:
postgres:
image: postgres:15
container_name: pg_books
restart: always
environment:
POSTGRES_USER: boooks
POSTGRES_PASSWORD: boooks_pass
POSTGRES_DB: boooks_db
ports:
- "5432:5432"
volumes:
- pg_data:/var/lib/postgresql/data
meilisearch:
image: getmeili/meilisearch:latest
container_name: meilisearch
ports:
- "7700:7700"
environment:
MEILI_MASTER_KEY: masterKey123
MEILI_ENV: development
volumes:
- meili_data:/data.ms
n8n:
image: n8nio/n8n
container_name: n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=boooks_admin
- N8N_BASIC_AUTH_PASSWORD=D!gital_B00ks_2025!
- N8N_EMAIL=admin@boooks.com
- N8N_USER_MANAGEMENT_DISABLED=true
- DB_TYPE=postgres
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=boooks_db
- DB_POSTGRESDB_USER=boooks
- DB_POSTGRESDB_PASSWORD=boooks_pass
depends_on:
- postgres
volumes:
- ./n8n_data:/home/node/.n8n
nextjs:
build: .
container_name: nextjs
command: npm run dev
ports:
- "3000:3000"
environment:
DATABASE_URL: postgres://boooks:boooks_pass@postgres:5432/boooks_db
MEILISEARCH_URL: http://meilisearch:7700
MEILISEARCH_KEY: masterKey123
develop:
watch:
- action: sync
path: .
target: /app
ignore:
- node_modules/
- .next/
- docker-compose.yaml
- Dockerfile
depends_on:
- postgres
- meilisearch
volumes:
pg_data:
meili_data: