-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
44 lines (43 loc) · 1.05 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
version: '2'
services:
mysql:
build: ./docker/mysql
restart: unless-stopped
container_name: mysql
env_file:
- ./docker/mysql/.env
volumes:
- ./docker/mysql/storage:/var/lib/mysql
# - ./docker/mysql/conf.d:/etc/mysql/conf.d
- ./docker/mysql/logs:/var/log/mysql
networks:
- net
redis:
build: ./docker/redis
restart: unless-stopped
container_name: redis
env_file:
- ./docker/redis/.env
volumes:
- ./docker/redis/storage:/data
- ./docker/redis/redis.conf:/usr/local/etc/redis/redis.conf
networks:
- net
web:
build: .
depends_on:
- mysql
- redis
container_name: web
restart: unless-stopped
env_file:
- ./src/.env.staging
ports:
- 8888:80
volumes:
- ./src:/var/www
networks:
- net
networks:
net:
driver: "bridge"