This repository has been archived by the owner on Mar 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
81 lines (75 loc) · 1.76 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
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
mongo:
image: mongo
networks:
- app
environment:
MONGO_INITDB_DATABASE: db
MONGO_INITDB_ROOT_USERNAME: db
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- '27017'
phpfpm:
image: itkdev/php7.3-fpm
networks:
- app
environment:
- PHP_XDEBUG=${PHP_XDEBUG:-0}
- PHP_XDEBUG_REMOTE_AUTOSTART=${PHP_XDEBUG_REMOTE_AUTOSTART:-0}
- PHP_XDEBUG_REMOTE_CONNECT_BACK=${PHP_XDEBUG_REMOTE_CONNECT_BACK:-0}
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
- PHP_IDE_CONFIG=serverName=localhost
depends_on:
- mongo
volumes:
- .:/app:delegated
tmpfs:
- /app/var/cache:size=1G
- /tmp:size=1G
nginx:
image: nginx:latest
networks:
- app
- frontend
depends_on:
- phpfpm
ports:
- '80'
volumes:
- ${PWD}/.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:4'
networks:
- app
ports:
- '6379'
elasticsearch:
image: 'elasticsearch:6.8.4'
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:
- ${PWD}/.docker/es:/usr/share/elasticsearch/data:rw
ports:
- '9200'
- '9300'