-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
111 lines (104 loc) · 2.73 KB
/
docker-compose.yaml
File metadata and controls
111 lines (104 loc) · 2.73 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
name: hook0
volumes:
postgres-data:
mailpit-data:
services:
postgres:
image: postgres:18
volumes:
- postgres-data:/var/lib/postgresql
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=hook0
ports:
- "5432:5432"
networks:
- hook0
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d $${POSTGRES_DB}"]
timeout: 1s
interval: 5s
mailpit:
image: axllent/mailpit:v1.28
volumes:
- mailpit-data:/data
environment:
- MP_DATABASE=/data/mailpit.db
- POSTGRES_DB=hook0
ports:
- "8025:8025"
- "1025:1025"
networks:
- hook0
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider --user-agent 'docker-compose-healthcheck' http://localhost:8025/api/v1/info || exit 1"]
timeout: 1s
interval: 5s
api:
build:
context: .
dockerfile: api/Dockerfile
args:
FEATURES: "application-secret-compatibility"
environment:
- IP=0.0.0.0
- PORT=8081
- CORS_ALLOWED_ORIGINS=http://localhost:8001
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/hook0
- SMTP_CONNECTION_URL=smtp://mailpit:1025
- APP_URL=http://localhost:8001
- BISCUIT_PRIVATE_KEY=bbea79cd66926b219b3219a3186decb36136d774dd7c35a8239e512090fa8854 # DO NOT USE THIS KEY IN PRODUCTION
ports:
- "8081:8081"
networks:
- hook0
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl --fail --user-agent 'docker-compose-healthcheck' http://localhost:$${PORT}/api/v1/swagger.json || exit 1"]
timeout: 1s
interval: 5s
depends_on:
postgres:
condition: service_healthy
mailpit:
condition: service_healthy
frontend:
build:
context: .
dockerfile: frontend/Dockerfile
environment:
- API_ENDPOINT=http://localhost:8081/api/v1
ports:
- "8001:80"
networks:
- hook0
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl --fail --user-agent 'docker-compose-healthcheck' http://localhost || exit 1"]
timeout: 1s
interval: 5s
depends_on:
api:
condition: service_healthy
output-worker:
build:
context: .
dockerfile: output-worker/Dockerfile
environment:
- DATABASE_URL=postgres://postgres:postgres@postgres:5432/hook0
- WORKER_NAME=default
- DISABLE_TARGET_IP_CHECK=true
networks:
- hook0
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
api:
condition: service_healthy
networks:
hook0:
driver: bridge