-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.yaml
78 lines (70 loc) · 1.63 KB
/
compose.yaml
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
services:
db:
image: mariadb:10.4
ports:
- "3307:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: app
volumes:
- db_data:/var/lib/mysql
networks:
- default
php:
build:
context: .
dockerfile: .devops/docker/Dockerfile
target: ${BUILD_TARGET:-dev}
image: ghcr.io/fan2shrek/kard:${VERSION:-latest}
ports:
- "8000:80"
working_dir: /app
volumes:
- .:/app
redis:
image: redis:7
node:
image: node:23
ports:
- "3000:3000"
volumes:
- ./assets/react/:/app
working_dir: /app/build
command: sh -c "npm i && npm run watch"
mercure:
image: dunglas/mercure
restart: unless-stopped
ports:
- "8090:80"
environment:
SERVER_NAME: ':80'
MERCURE_PUBLISHER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'
MERCURE_SUBSCRIBER_JWT_KEY: '!ChangeThisMercureHubJWTSecretKey!'
MERCURE_EXTRA_DIRECTIVES: |
cors_origins http://localhost:8000
command: /usr/bin/caddy run --config /etc/caddy/dev.Caddyfile
volumes:
- mercure_data:/data
- mercure_config:/config
mailer:
image: axllent/mailpit
ports:
- "8025:8025"
rabbitmq:
image: rabbitmq:3.12.4-management
ports:
- "15672:15672"
worker:
build:
context: .
dockerfile: .devops/docker/Dockerfile
target: ${BUILD_TARGET:-dev}
image: ghcr.io/fan2shrek/kard:${VERSION:-latest}
working_dir: /app
volumes:
- .:/app
command: "php -d memory_limit=-1 bin/console messenger:consume async"
volumes:
db_data:
mercure_data:
mercure_config: