forked from Saumodunn/Brick-Hill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
115 lines (105 loc) · 2.78 KB
/
docker-compose.yml
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
112
113
114
115
version: "3.4"
services:
app:
build:
context: .
target: dev
dockerfile: Dockerfile
restart: unless-stopped
command: php artisan octane:start --watch --server=roadrunner --host=0.0.0.0 --workers=1 --max-requests=50
volumes:
- .:/var/www/html
depends_on:
- db
- redis
scheduler:
profiles:
- all-services
- scheduler
build:
context: .
target: dev
dockerfile: Dockerfile
restart: unless-stopped
entrypoint: ./docker/scheduler.sh
volumes:
- .:/var/www/html
depends_on:
- db
- redis
# queue worker is long running, if the code changes it wont be executed until the worker is restarted
# currently not too many features use queues so this is fine but might want to look into a file watching mechanism
queue:
profiles:
- all-services
- queue
build:
context: .
target: dev
dockerfile: Dockerfile
restart: unless-stopped
entrypoint: ./docker/queue.sh
volumes:
- .:/var/www/html
depends_on:
- db
- redis
webpack:
image: node:18-alpine
user: 1000:1000
restart: unless-stopped
working_dir: /var/www/html
command: sh -c "npm install && npm run watch"
volumes:
- .:/var/www/html
composer:
build:
context: .
target: composer-base
dockerfile: Dockerfile
command: composer install
volumes:
- .:/app
nginx:
build:
context: .
dockerfile: docker/nginx/Dockerfile
restart: unless-stopped
volumes:
- .:/var/www/html
depends_on:
- app
ports:
- 80:80
db:
image: mysql:8.0
restart: unless-stopped
environment:
MYSQL_DATABASE: testbh
MYSQL_ROOT_PASSWORD: secret
ports:
- 3306:3306
volumes:
- ./docker/dev/mysql/init:/docker-entrypoint-initdb.d
- dbdata:/var/lib/mysql
redis:
image: redis:alpine
restart: unless-stopped
ports:
- 6379:6379
opensearch:
image: opensearchproject/opensearch:2
restart: unless-stopped
environment:
discovery.type: single-node
plugins.security.disabled: "true"
ports:
- 9200:9200
- 9600:9600
volumes:
- opensearchdata:/usr/share/opensearch/data
volumes:
dbdata:
driver: local
opensearchdata:
driver: local