-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.dev.yml
127 lines (117 loc) · 2.64 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "3.7"
services:
php:
build:
context: .envs/dev
dockerfile: php/Dockerfile
args:
TZ: Asia/Tokyo
USERID: ${USERID}
GROUPID: ${GROUPID}
image: sunos-php:dev
restart: on-failure
volumes:
- .:/var/www/app
- composer_cache:/root/.composer
expose:
- "9000"
working_dir: /var/www/app
networks:
- sunos
node:
build:
context: .envs/dev
dockerfile: node/Dockerfile
image: sunos-node:dev
volumes:
- .:/var/www/app
working_dir: /var/www/app
expose:
- "4000"
networks:
- sunos
cert:
build:
context: .envs/dev
dockerfile: cert/Dockerfile
image: sunos-cert:dev
command: [/scripts/command.sh, localhost]
volumes:
- ./.envs/dev/cert/files:/files
networks:
- sunos
environment:
HT_USER: web
HT_PASSWORD: 123456
nginx:
build:
context: .envs/dev
dockerfile: nginx/Dockerfile
image: sunos-nginx:dev
restart: on-failure
ports:
- "8080:80"
- "8443:443"
- "8444:444"
- "8445:445"
volumes:
- ./.envs/dev/nginx/conf.d:/etc/nginx/conf.d
- ./.envs/dev/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./.envs/dev/cert/files:/etc/nginx/certs
- .:/var/www/app
working_dir: /var/www/app
networks:
- sunos
mysql:
build:
context: .envs/dev
dockerfile: mysql/Dockerfile
image: sunos-mysql:dev
restart: on-failure
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci --general-log=true --general-log-file=/var/log/mysql/query.log
volumes:
- mysql_data:/var/lib/mysql
expose:
- "3306"
networks:
- sunos
environment:
MYSQL_ROOT_PASSWORD: ms_root
MYSQL_DATABASE: ms_database
MYSQL_USER: ms_user
MYSQL_PASSWORD: ms_password
phpmyadmin:
image: busybox:1.30.1
command: [/bin/sh, /var/www/app/.envs/dev/phpmyadmin/command.sh]
volumes:
- .:/var/www/app
working_dir: /var/www/app/.envs/dev/phpmyadmin
networks:
- sunos
redis:
image: redis:5.0.3
command: ["bash", "-c", "docker-entrypoint.sh --requirepass $${REDIS_PASSWORD}"]
ports:
- 6379:6379
networks:
- sunos
environment:
REDIS_PASSWORD: rd_password
memcached:
image: bitnami/memcached:1.5.16
ports:
- 11211:11211
networks:
- sunos
environment:
- MEMCACHED_USERNAME=mem_user
- MEMCACHED_PASSWORD=mem_password
networks:
sunos:
name: sunos
driver: bridge
volumes:
mysql_data:
external: true
composer_cache:
external: true