-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
107 lines (104 loc) · 3 KB
/
docker-compose.yaml
File metadata and controls
107 lines (104 loc) · 3 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
services:
client:
image: source-ng:1.0
container_name: source-client
build:
context: ./client
dockerfile: Dockerfile
ports:
- '4000:4000'
environment:
NODE_ENV: ${CLIENT_NODE_ENV:-production}
BASE_URL: ${CLIENT_BASE_URL:-http://source-server:80/api}
depends_on:
server:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '--spider', '-q', 'http://localhost:4000']
interval: 1m30s
timeout: 10s
start_period: 10s
retries: 3
server:
image: source-laravel:1.0
container_name: source-server
build:
context: ./server
dockerfile: Dockerfile
ports:
- '8000:80'
volumes:
- ./server:/var/www/html
depends_on:
db:
condition: service_healthy
environment:
QUEUE_CONNECTION: database
CACHE_STORE: database
SESSION_DRIVER: database
BCRYPT_ROUNDS: 12
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost/up']
interval: 1m30s
timeout: 10s
start_period: 5s
retries: 3
n8n:
image: n8nio/n8n:1.107.2
container_name: source-n8n
restart: always
env_file:
- .env
ports:
- '5678:5678'
volumes:
- n8n_data:/home/node/.n8n
environment:
N8N_BASIC_AUTH_ACTIVE: true
N8N_BASIC_AUTH_USER: ${N8N_BASIC_AUTH_USER}
N8N_BASIC_AUTH_PASSWORD: ${N8N_BASIC_AUTH_PASSWORD}
N8N_ENCRYPTION_KEY: ${N8N_ENCRYPTION_KEY}
N8N_HOST: ${N8N_HOST}
N8N_PORT: ${N8N_PORT}
N8N_PROTOCOL: ${N8N_PROTOCOL}
NODE_ENV: ${N8N_NODE_ENV}
TZ: UTC
N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS: true
N8N_RUNNERS_ENABLED: true
DB_SQLITE_POOL_SIZE: 2
healthcheck:
test:
[
'CMD',
'wget',
'--spider',
'-q',
'http://localhost:5678/healthz/readiness',
]
interval: 1m30s
timeout: 10s
start_period: 10s
retries: 3
db:
image: postgres:17.6
container_name: source-postgres
restart: always
ports:
- '5432:5432'
volumes:
- db_data:/var/lib/postgresql/data
env_file:
- .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 1m30s
timeout: 5s
start_period: 3s
retries: 3
volumes:
db_data:
n8n_data: