-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (60 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
62 lines (60 loc) · 1.31 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
version: '3'
services:
php:
container_name: phptips_php
ports:
- "8080:80"
build:
context: "./docker/php"
dockerfile: "Dockerfile"
volumes:
- .:/var/www/html
networks:
- phptips
redis:
container_name: phptips_redis
image: "redis:latest"
ports:
- "6379:6379"
volumes:
- "./redis/data:/data"
networks:
- phptips
redisinsight:
container_name: phptips_redisinsight
image: redislabs/redisinsight:latest
ports:
- 8001:8001
volumes:
- ./redis/insight:/db
networks:
- phptips
mailhog:
container_name: phptips_mailhog
image: mailhog/mailhog
ports:
- "8025:8025"
volumes:
- "./mail/mhsendmail:/usr/local/bin/mhsendmail"
networks:
- phptips
db:
container_name: phptips_db
ports:
- "3306:3306"
build:
context: "./docker/mysql"
dockerfile: "Dockerfile"
environment:
MYSQL_DATABASE: phptips
MYSQL_USER: phptips_user
MYSQL_PASSWORD: phptips_password
MYSQL_ROOT_PASSWORD: root_password
volumes:
# 初期データを投入するSQLが格納されているdir
- ./docker/mysql/init/:/docker-entrypoint-initdb.d/
networks:
- phptips
networks:
phptips:
driver: "bridge"