-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (88 loc) · 2.37 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
services:
laravel:
build:
context: "./.devcontainer"
dockerfile: "Dockerfile"
extra_hosts:
- 'host.docker.internal:host-gateway'
# ports:
# - '${APP_PORT:-80}:80'
# - '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
# environment:
# XDEBUG_MODE: 'develop,debug'
# XDEBUG_CONFIG: 'client_host=127.0.0.1'
command:
- "/usr/local/bin/php"
- "-d"
- "xdebug.mode=develop,debug"
- "/var/www/html/artisan"
- "serve"
- "--host=0.0.0.0"
- "--port=80"
volumes:
- '.:/var/www/html'
- '/var/run/docker.sock:/var/run/docker.sock'
depends_on:
- pgsql
- redis
- memcached
- mailpit
- selenium
pgsql:
image: 'postgres:17'
environment:
PGPASSWORD: 'secret'
POSTGRES_DB: 'laravel'
POSTGRES_USER: 'laravel'
POSTGRES_PASSWORD: 'secret'
volumes:
- 'pgsql:/var/lib/postgresql/data'
healthcheck:
test:
- CMD
- pg_isready
- '-q'
- '-d'
- 'laravel'
- '-U'
- 'laravel'
retries: 3
timeout: 5s
redis:
image: 'redis:alpine'
volumes:
- 'redis:/data'
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
memcached:
image: 'memcached:alpine'
mailpit:
image: 'axllent/mailpit:latest'
# ports:
# - '127.0.0.1:8025:8025'
selenium:
image: selenium/standalone-chromium
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
- '/dev/shm:/dev/shm'
influxdb:
image: 'influxdb:2.7-alpine'
environment:
DOCKER_INFLUXDB_INIT_MODE: 'setup'
DOCKER_INFLUXDB_INIT_USERNAME: 'laravel'
DOCKER_INFLUXDB_INIT_PASSWORD: 'secret'
DOCKER_INFLUXDB_INIT_ORG: 'laravel'
DOCKER_INFLUXDB_INIT_BUCKET: 'laravel'
volumes:
pgsql:
driver: local
redis:
driver: local
influxdb:
driver: local