-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
52 lines (45 loc) · 1019 Bytes
/
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
version: '2'
services:
mysql:
image: 'mysql:8'
restart: on-failure
volumes:
- './dump/mysql:/dump'
- 'mysql-data:/var/lib/mysql'
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
memcached:
image: 'memcached:1.6.17-alpine'
restart: on-failure
redis:
image: 'redis:alpine'
restart: on-failure
command: ["redis-server", "--save 900 1", "--save 300 10", "--save 60 10000"]
volumes:
- './dump/redis:/data'
php:
build:
dockerfile: 'docker/php/Dockerfile'
context: '.'
restart: on-failure
links:
- mysql
- memcached
- redis
volumes:
- './www:/var/www/codex'
- 'pma-data:/usr/share'
nginx:
image: 'nginx:latest'
restart: on-failure
ports:
- '127.0.0.1:${APP_PORT}:8080'
links:
- php
volumes:
- './docker/nginx-codex.conf:/etc/nginx/conf.d/codex.conf'
- './www:/var/www/codex'
- 'pma-data:/usr/share'
volumes:
mysql-data:
pma-data: