-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
85 lines (78 loc) · 1.79 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
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
phpfpm:
image: itkdev/php8.1-fpm
networks:
- app
environment:
- XDEBUG_MODE=${XDEBUG_MODE:-off}
- XDEBUG_SESSION=${XDEBUG_SESSION:-0}
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
- PHP_IDE_CONFIG=serverName=localhost
- PHP_APCU_ENABLED=1
- PHP_APCU_ENABLED_CLI=1
- COMPOSER_VERSION=2
depends_on:
- elasticsearch
volumes:
- .:/app:delegated
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on:
- phpfpm
ports:
- '8080'
volumes:
- ./.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend"
- "traefik.http.routers.${COMPOSE_PROJECT_NAME}.rule=Host(`${COMPOSE_DOMAIN}`)"
redis:
image: 'redis:6'
networks:
- app
ports:
- '6379'
rabbit:
image: rabbitmq:3.9-management
networks:
- app
- frontend
ports:
- 15672
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
- RABBITMQ_ERLANG_COOKIE='d53f319cd7376f8f840aaf9889f315ab'
elasticsearch:
image: 'elasticsearch:8.5.2'
networks:
- app
environment:
- node.name=es01
- discovery.type=single-node
- ELASTIC_PASSWORD="password"
- xpack.license.self_generated.type=trial
- xpack.security.enabled=false
- xpack.security.transport.ssl.enabled=false
volumes:
- esdata:/usr/share/elasticsearch/data
ports:
- '9200'
- '9300'
volumes:
esdata:
driver: local