-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
51 lines (49 loc) · 1.39 KB
/
docker-compose.yaml
File metadata and controls
51 lines (49 loc) · 1.39 KB
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
services:
www:
image: tokumeikoi/lcrp
container_name: v2board-www
volumes:
- './www:/www'
- './wwwlogs:/wwwlogs'
- './caddy.conf:/run/caddy/caddy.conf'
- './supervisord.conf:/run/supervisor/supervisord.conf'
- './crontabs.conf:/etc/crontabs/root'
- './.caddy:/root/.caddy'
ports:
- '${HTTP_PORT:-80}:80'
- '${HTTPS_PORT:-443}:443'
restart: always
depends_on:
mysql:
condition: service_healthy
networks:
- mynet
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
mysql:
image: mysql:8.0
container_name: v2board-mysql
volumes:
- './mysql:/var/lib/mysql'
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD:-v2boardisbest}
MYSQL_DATABASE: ${MYSQL_DATABASE:-v2board}
MYSQL_USER: ${MYSQL_USER:-v2board}
MYSQL_PASSWORD: ${MYSQL_PASSWORD:-v2boardpassword}
networks:
- mynet
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$${MYSQL_ROOT_PASSWORD}"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
command: --default-authentication-plugin=mysql_native_password --socket=/var/run/mysqld/mysqld.sock
networks:
mynet:
driver: bridge