-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose.yml
75 lines (72 loc) · 1.54 KB
/
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
services:
proxy:
image: nginx
ports:
- "3000:80"
volumes:
- ./docker/nginx.conf:/etc/nginx/conf.d/default.conf:ro
depends_on:
- jomon-server
jomon-server:
build:
context: ./
dockerfile: ./Dockerfile.dev
environment:
MARIADB_USERNAME: root
MARIADB_PASSWORD: password
MARIADB_HOSTNAME: db
MARIADB_DATABASE: jomon
SESSION_KEY: secret
IS_DEBUG_MODE: "true"
UPLOAD_DIR: ./uploads
env_file: .env
ports:
- "1323:1323"
volumes:
- "./uploads:/src/uploads"
depends_on:
db:
condition: service_healthy
tty: true
develop:
watch:
- path: ./
action: sync+restart
target: /src
ignore:
- uploads
db:
image: mariadb:10.11.4
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: jomon
TZ: Asia/Tokyo
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
volumes:
- "./docker/mysql:/docker-entrypoint-initdb.d"
expose:
- "3306"
ports:
- "3306:3306"
healthcheck:
test: [
"CMD",
"healthcheck.sh",
"--su-mysql",
"--connect",
"--innodb_initialized"
]
interval: 10s
timeout: 5s
start_period: 5s
retries: 3
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=password
ports:
- 8888:80