-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (58 loc) · 1.23 KB
/
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
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:
mysql:
volumes:
- ./data_mysql:/var/lib/mysql
tty: true
build:
context: .
dockerfile: ./docker/mysql/Dockerfile
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: secrethome
TZ: Asia/Tokyo
command: mysqld --default-authentication-plugin=mysql_native_password
restart: always
nginx:
volumes:
- ./data_files:/data_files
tty: true
ports:
- '61132:60132'
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
environment:
TZ: Asia/Tokyo
restart: always
backend:
volumes:
- ./data_files:/backend/data_files
tty: true
ports:
- '61133:60133'
build:
context: ./
dockerfile: ./docker/backend/product/Dockerfile
working_dir: /backend
environment:
TZ: Asia/Tokyo
command: /backend/secrethome-back
depends_on:
- mysql
restart: always
web:
tty: true
ports:
- '61131:3000'
build:
context: ./
dockerfile: ./docker/next_app/product/Dockerfile
working_dir: /next_app
environment:
TZ: Asia/Tokyo
entrypoint: /nodejs/bin/node server.js
depends_on:
- mysql
- nginx
restart: always