-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 968 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 968 Bytes
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
version: "2"
services:
nginx:
build: dockers/nginx
volumes_from:
- php-fpm
ports:
- "80:80"
- "443:443"
depends_on:
- php-fpm
- mariadb
- redis
restart: always
php-fpm:
build: dockers/php-fpm
volumes:
- ${PWD}/web:/usr/share/nginx/html
ports:
- "2222:22"
restart: always
mariadb:
build: dockers/mariadb
ports:
- "3306:3306"
volumes:
- ./db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=ROOT_PASSWORD
- MYSQL_DATABASE=XE_DB
- MYSQL_USER=XE_USER
- MYSQL_PASSWORD=USER_PASSWORD
- TZ=Asia/Seoul
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
redis:
image: redis
restart: always