-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (69 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
75 lines (69 loc) · 1.52 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
version: '2'
services:
mysql:
image: 'mysql:5.7'
restart: unless-stopped
volumes:
- './dump/mysql:/dump'
- mysqldata:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
memcached:
restart: unless-stopped
image: 'memcached:1.6.6-alpine'
redis:
image: 'redis:6.0.5-alpine'
restart: unless-stopped
command: ["redis-server", "--save 900 1", "--save 300 10", "--save 60 10000"]
volumes:
- ./dump/redis:/data
elasticsearch:
image: 'elasticsearch:7.4.0'
restart: unless-stopped
environment:
- xpack.security.enabled=false
- discovery.type=single-node
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
cap_add:
- IPC_LOCK
volumes:
- elasticsearch-data:/usr/share/elasticsearch/data
php:
build:
dockerfile: 'docker/php/Dockerfile'
context: '.'
restart: unless-stopped
depends_on:
- redis
- mysql
- elasticsearch
links:
- mysql
- memcached
- redis
- elasticsearch
volumes:
- './www:/var/www/codex.media'
- '/usr/share'
- './.git:/var/www/codex.media/.git'
nginx:
image: 'nginx:1.19.1-alpine'
restart: unless-stopped
ports:
- "127.0.0.1:${APP_PORT}:8080"
links:
- php
volumes:
- './docker/codex-media.conf:/etc/nginx/conf.d/codex.conf'
volumes_from:
- php
volumes:
mysqldata:
elasticsearch-data:
driver: local