-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
173 lines (156 loc) · 3.67 KB
/
docker-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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
version: "3"
name: musicparty
services:
nginx:
image: ghcr.io/mintopia/php-docker-nginx:latest
restart: unless-stopped
volumes:
- ./:/var/www
- ./docker/default.conf:/etc/nginx/templates/conf.d/default.conf.template
depends_on:
- php-fpm
reverb:
build:
context: .
dockerfile: docker/develop/Dockerfile.php-fpm
restart: unless-stopped
volumes:
- ./:/var/www
depends_on:
- redis
- db
entrypoint: [ "php" ]
command: "artisan reverb:start --host=0.0.0.0 --debug"
php-fpm:
build:
context: .
dockerfile: docker/develop/Dockerfile.php-fpm
restart: unless-stopped
environment:
- XDEBUG_CONFIG=client_host=host.docker.internal
- PHP_IDE_CONFIG=serverName=musicparty
- XDEBUG_MODE=debug
- XDEBUG_SESSION=start
volumes:
- ./:/var/www
depends_on:
- redis
- db
worker:
image: 1and1internet/php-build-environment:8.2-xdebug
restart: unless-stopped
entrypoint: [ "php" ]
command: "artisan queue:work"
user: "1000"
env_file: .env
deploy:
replicas: 1
volumes:
- ./:/app
depends_on:
- db
- redis
scheduler:
image: 1and1internet/php-build-environment:8.2-xdebug
restart: unless-stopped
entrypoint: [ "php" ]
command: "artisan schedule:run"
user: "1000"
env_file: .env
volumes:
- ./:/app
depends_on:
- db
- redis
db:
image: mariadb:10.5-focal
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: "${DB_PASSWORD}"
MYSQL_DATABASE: "${DB_DATABASE}"
MYSQL_USER: "${DB_USERNAME}"
MYSQL_PASSWORD: "${DB_PASSWORD}"
volumes:
- dbdata:/var/lib/mysql
redis:
image: redis:6.2.6
restart: unless-stopped
composer:
profiles: [ "composer" ]
image: 1and1internet/php-build-environment:8.2-xdebug
entrypoint: [ "composer" ]
command: [ "--version" ]
user: "1000"
volumes:
- ./:/app
test:
profiles: [ "test" ]
image: 1and1internet/php-build-environment:8.2-xdebug
entrypoint: [ "vendor/bin/phpunit" ]
user: "1000"
volumes:
- ./:/app
lint:
profiles: [ "lint" ]
image: 1and1internet/php-build-environment:8.2-xdebug
entrypoint: [ "vendor/bin/parallel-lint" ]
command: [ "--exclude", "vendor", "." ]
user: "1000"
volumes:
- ./:/app
phpcs:
profiles: [ "phpcs" ]
image: 1and1internet/php-build-environment:8.2-xdebug
entrypoint: [ "vendor/bin/phpcs" ]
command: [ "-pn", "--standard=PSR12", "app/", "tests/" ]
user: "1000"
volumes:
- ./:/app
phpcs-fixer:
profiles: [ "phpcs-fixer" ]
image: 1and1internet/php-build-environment:8.2-xdebug
entrypoint: [ "vendor/bin/phpcbf" ]
command: [ "-pn", "--standard=PSR12", "app/", "tests/" ]
user: "1000"
volumes:
- ./:/app
phpstan:
profiles: [ "phpstan" ]
image: 1and1internet/php-build-environment:8.2
entrypoint: [ "vendor/bin/phpstan" ]
command: [ "analyse" ]
user: "1000"
volumes:
- ./:/app
npm:
profiles: [ "npm" ]
image: node:20
entrypoint: [ "npm" ]
command: [ "" ]
user: "1000"
working_dir: /app
volumes:
- ./:/app
artisan:
profiles: [ "artisan" ]
image: mintopia/php-build-environment:8.2-xdebug
entrypoint: [ "/app/artisan" ]
user: "1000"
volumes:
- ./:/app/
depends_on:
- redis
- db
shell:
profiles: [ "shell" ]
image: mintopia/php-build-environment:8.2-xdebug
entrypoint: [ "/bin/bash" ]
user: "1000"
volumes:
- ./:/app/
depends_on:
- redis
- db
volumes:
dbdata:
driver: local