-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.dev.yml
46 lines (43 loc) · 1.16 KB
/
docker-compose.dev.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
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
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
web:
build: ./Dockerfile.dev
depends_on:
- mysql
- redis
container_name: web
restart: unless-stopped
env_file:
- ./.env.staging
ports:
- 8888:80
volumes:
- src:/var/www
jenkins:
build: ./docker/dev/jenkins
container_name: jenkins
restart: unless-stopped
ports:
- 8080:8080
- 50000:50000
volumes:
- ./docker/jenkins/storage:/var/jenkins_home