-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (101 loc) · 2.78 KB
/
Copy pathdocker-compose.yml
File metadata and controls
102 lines (101 loc) · 2.78 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
services:
rabbitmq:
container_name: nanci-rabbitmq
image: rabbitmq:management
healthcheck:
test: rabbitmq-diagnostics -q ping
interval: 30s
timeout: 30s
retries: 3
ports:
- "5672:5672"
- "15672:15672"
restart: unless-stopped
environment:
RABBITMQ_DEFAULT_USER: rabbit
RABBITMQ_DEFAULT_PASS: rabbit
postgres:
container_name: nanci-postgres
image: postgres:18
ports:
- "5432:5432"
restart: unless-stopped
environment:
POSTGRES_DATABASE: nanci
POSTGRES_USER: nanci
POSTGRES_PASSWORD: nanci
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U nanci -d nanci" ]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
migrate-postgres:
container_name: nanci-postgres-migrate
build:
context: .
dockerfile: docker/migration.Dockerfile
command: up
restart: on-failure
depends_on:
postgres:
condition: service_healthy
environment:
DATABASE_URL: postgresql://nanci:nanci@postgres:5432/nanci
webhook_listener:
depends_on:
rabbitmq:
condition: service_healthy
container_name: nanci-webhook-listener
build:
context: .
dockerfile: docker/webhook_listener.Dockerfile
ports:
- "11001:11001"
restart: unless-stopped
environment:
NANCI_WEBHOOK_LISTENER_RABBIT_MQ_URL: amqp://rabbit:rabbit@rabbitmq:5672
NANCI_WEBHOOK_LISTENER_PORT: 11001
smee:
container_name: nanci-smee
image: deltaprojects/smee-client:latest
command: -u ${SMEE_URL} -t http://webhook_listener:11001/
restart: unless-stopped
platform: linux/amd64
server:
container_name: nanci-server
build:
context: .
dockerfile: docker/server.Dockerfile
restart: unless-stopped
depends_on:
rabbitmq:
condition: service_healthy
postgres:
condition: service_healthy
ports:
- "11000:11000"
environment:
RUST_LOG: server=debug
NANCI_SERVER_RABBIT_MQ_URL: amqp://rabbit:rabbit@rabbitmq:5672
NANCI_SERVER_WEB_CORS_ORIGIN: http://localhost:9090
NANCI_SERVER_PORT: 11000
NANCI_SERVER_DATABASE_URL: postgresql://nanci:nanci@postgres:5432/nanci
NANCI_SERVER_COOKIE_KEY: ${COOKIE_KEY}
NANCI_SERVER_JWT_KEY: ${JWT_KEY}
NANCI_SERVER_GITHUB__CLIENT_ID: ${GH_CLIENT_ID}
NANCI_SERVER_GITHUB__PRIVATE_KEY: ${GH_PRIVATE_KEY}
web:
container_name: nanci-web
build:
context: .
dockerfile: docker/web.dev.Dockerfile
restart: unless-stopped
volumes:
- ./web:/app
- /app/node_modules # Keep the existing node_modules
environment:
VITE_NANCI_WEB_API_URL: http://localhost:11000
VITE_NANCI_WS_API_URL: ws://localhost:11000
ports:
- "9090:9090"