forked from Dragon-taro/calender-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (37 loc) · 832 Bytes
/
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
version: "3"
services:
nginx:
build: ./nginx/
ports:
- "8080:80"
volumes:
- "./front/public:/var/www/html"
networks:
- private-subnet
api:
build: ./server/
volumes:
- "./server:/var/www/server"
networks:
- private-subnet
environment:
- DB_USER=user
- DB_NAME=calender
- DB_PASS=pass
- DB_HOST=db
db:
image: mysql:5.7
command: mysqld --character-set-server=utf8 --collation-server=utf8_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: pass
MYSQL_DATABASE: calender
MYSQL_USER: user
MYSQL_PASSWORD: pass
TZ: Asia/Tokyo
volumes:
- ./db/initdb.d:/docker-entrypoint-initdb.d
- ./db/conf.d/my.cnf:/etc/mysql/conf.d/my.cnf
networks:
- private-subnet
networks:
private-subnet: {}