-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (57 loc) · 1.51 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
services:
app:
build:
context: ./docker
dockerfile: Dockerfile
environment:
XDEBUG_MODE: '${XDEBUG_MODE:-off}'
PHP_IDE_CONFIG: serverName=webmtv
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
ports:
- '${APP_PORT:-80}:${OCTANE_PORT:-8000}'
volumes:
- .:/var/www/html
working_dir: /var/www/html
networks:
- webm
mysql:
image: 'mysql/mysql-server:8.0'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'webm-mysql:/var/lib/mysql'
networks:
- webm
redis:
image: 'redis:alpine'
volumes:
- 'webm-redis:/data'
networks:
- webm
meilisearch:
image: 'getmeili/meilisearch:latest'
ports:
- '${FORWARD_MEILISEARCH_PORT:-7700}:7700'
environment:
MEILI_NO_ANALYTICS: '${MEILISEARCH_NO_ANALYTICS:-false}'
volumes:
- 'webm-meilisearch:/meili_data'
networks:
- webm
networks:
webm:
driver: bridge
volumes:
webm-mysql:
driver: local
webm-redis:
driver: local
webm-meilisearch:
driver: local