-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
62 lines (61 loc) · 1.39 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
version: '2'
services:
web:
build:
context: ./
dockerfile: DOCKERFILE
ports:
- "WEB_PORT:80"
- "433"
- "6001"
volumes:
- ../:/var/www/site
links:
- mysql
- memcached
- redis
expose:
- "80"
- "433"
- "6001"
networks:
- dlocal-net
depends_on:
- mysql
- memcached
- redis
environment:
- REDIS_URL=redis://cache
mysql:
image: DB_IMAGE
command: mysqld --default-authentication-plugin=mysql_native_password
restart: always
ports:
- "MYSQL_PORT:3306"
environment:
MYSQL_ROOT_PASSWORD: 1234
volumes:
- ./data/dumps:/docker-entrypoint-initdb.d
- ./data/custom:/etc/mysql/conf.d
- mysql-data-WEB_PORT:/var/lib/mysql
networks:
- dlocal-net
memcached:
image: memcached
restart: always
ports:
- "MEMCACHED_PORT:11211"
networks:
- dlocal-net
redis:
image: redis
restart: always
ports:
- "REDIS_PORT:6379"
networks:
- dlocal-net
volumes:
mysql-data-WEB_PORT:
networks:
dlocal-net:
driver: bridge