-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (113 loc) · 2.96 KB
/
Copy pathdocker-compose.yml
File metadata and controls
119 lines (113 loc) · 2.96 KB
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
services:
redis:
image: redis:alpine
ports:
- "${REDIS_PORT:-6379}:6379"
postgres:
image: postgres:16
environment:
POSTGRES_DB: ${DATABASE_DB}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "${POSTGRES_PORT:-5432}:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
web:
image: nginx:latest
ports:
- "${HTTP_PORT:-80}:80"
- "${HTTPS_PORT:-443}:443"
volumes:
- ./certs:/etc/nginx/certs
- ./docker/default.conf:/etc/nginx/conf.d/default.conf
- .:/var/www/html
- ${DOCKER_SCRATCH_DIR}:/scratch
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- redis
- postgres
- elasticsearch
- beanstalkd
links:
- php-fpm
beanstalkd:
image: maateen/docker-beanstalkd
ports:
- "${BEANSTALKD_PORT:-11300}:11300"
reindex-worker:
image: elevator-php-fpm:latest
build:
context: .
dockerfile: docker/Dockerfile
args:
- DOCKER_SCRATCH_DIR=${DOCKER_SCRATCH_DIR}
- DOCKER_ENVIRONMENT=${CI_ENV}
command: php index.php beltdrive updateIndexes
restart: unless-stopped
volumes:
- ./:/var/www/html
- ${DOCKER_SCRATCH_DIR}:/scratch
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- beanstalkd
- elasticsearch
- postgres
- php-fpm
php-fpm:
image: elevator-php-fpm:latest
build:
context: .
dockerfile: docker/Dockerfile
args:
- DOCKER_SCRATCH_DIR=${DOCKER_SCRATCH_DIR}
- DOCKER_ENVIRONMENT=${CI_ENV}
volumes:
- ./:/var/www/html
- ${DOCKER_SCRATCH_DIR}:/scratch
- /var/run/docker.sock:/var/run/docker.sock
# develop:
# watch:
# - action: sync
# path: ./
# target: /var/www/html/
# ignore:
# - vendor/
# apache:
# platform: linux/x86_64
# build:
# context: .
# args:
# - DOCKER_SCRATCH_DIR=${DOCKER_SCRATCH_DIR}
# - DOCKER_ENVIRONMENT=${ENVIRONMENT}
# - ENVIRONMENT=${ENVIRONMENT}
# ports:
# - "80:80"
# volumes:
# - .:/var/www/html
# - ${DOCKER_SCRATCH_DIR}:/scratch
# - /var/run/docker.sock:/var/run/docker.sock
# depends_on:
# - redis
# - postgres
# - beanstalkd
# - elasticsearch
elasticsearch:
# platform: linux/x86_64
image: elasticsearch:8.17.1
environment:
- discovery.type=single-node
- http.cors.allow-origin=http://localhost:8080
- http.cors.enabled=true
- xpack.security.http.ssl.enabled=false
- xpack.security.enabled=false
- xpack.security.enrollment.enabled=false
# - bootstrap.system_call_filter=false
ports:
- "${ELASTICSEARCH_PORT:-9200}:9200"
- "${ELASTICSEARCH_TRANSPORT_PORT:-9300}:9300"
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
volumes:
postgres-data:
elasticsearch-data: