forked from yumelab-imai/origin_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (80 loc) · 2.07 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
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
version: '3.8'
services:
api:
container_name: sys1-api
build:
context: .
dockerfile: ./docker/php/Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
ENV_EXTENSION: ${ENV_EXTENSION:-dev}
volumes:
- ./src/:/var/www/html
user: www-data
ports:
- "8000:8000"
next:
container_name: sys1-nextjs
build:
context: .
dockerfile: ./docker/next/Dockerfile
volumes:
- /app/node_modules
- ./next/:/app
# nextアプリが用意できた後
# command: npm run dev
depends_on:
- api
ports:
- "3000:3000"
# 最初だけ(後で削除)
tty: true
stdin_open: true
web:
container_name: sys1-web
build:
context: .
dockerfile: ./docker/nginx/Dockerfile.${ENV_EXTENSION:-dev}
ports:
- ${WEB_PORT}:80
- "443:443"
- "8090:8090"
depends_on:
- api
- next
volumes:
- ./src/:/var/www/html
mysql:
container_name: sys1-mysql
image: mysql:8.0
environment:
MYSQL_DATABASE: "${APP_NAME}"
MYSQL_USER: "${APP_NAME}"
MYSQL_PASSWORD: "${PHPMYADMIN_PASSWORD}"
MYSQL_ROOT_PASSWORD: "${PHPMYADMIN_PASSWORD}"
ports:
- "2000:3306"
volumes:
- sys1-mysql-volume:/var/lib/mysql
- ./backup:/backup
phpmyadmin:
container_name: sys1-phpmyadmin
image: phpmyadmin/phpmyadmin
platform: linux/amd64
environment:
PMA_HOST: mysql
PMA_PORT: 3306
ports:
- "10000:80"
depends_on:
- mysql
mailhog:
container_name: sys1-mailhog
image: mailhog/mailhog
ports:
- "1025:1025"
- "8025:8025"
volumes:
sys1-mysql-volume:
driver: local