-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (73 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
77 lines (73 loc) · 1.8 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
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
services:
ept:
build:
context: .
network: host
ports:
- "${APP_PORT:-80}:80"
environment:
- APPLICATION_ENV=production
- DB_HOST=ept-db
- DB_USER=root
- DB_PASSWORD=ept_secret
- DB_NAME=ept
- APP_DOMAIN=${APP_DOMAIN:-http://localhost/}
volumes:
- uploads:/var/www/ept/public/uploads
- logs:/var/www/ept/logs
- backups:/var/www/ept/backups
- downloads:/var/www/ept/downloads
depends_on:
ept-db:
condition: service_healthy
restart: unless-stopped
ept-db:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=ept_secret
- MYSQL_DATABASE=ept
volumes:
- mysql_data:/var/lib/mysql
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
command: >
--character-set-server=utf8mb4
--collation-server=utf8mb4_0900_ai_ci
--sql-mode=
--innodb-strict-mode=0
--max-connect-errors=10000
--default-authentication-plugin=mysql_native_password
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
interval: 5s
timeout: 5s
retries: 10
restart: unless-stopped
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx.conf.template:/etc/nginx/templates/default.conf.template:ro
- ./docker/certbot/conf:/etc/nginx/ssl:ro
- ./docker/certbot/www:/var/www/certbot:ro
environment:
- APP_HOSTNAME=${APP_HOSTNAME:-localhost}
depends_on:
- ept
restart: unless-stopped
profiles:
- ssl
certbot:
image: certbot/certbot
volumes:
- ./docker/certbot/conf:/etc/letsencrypt
- ./docker/certbot/www:/var/www/certbot
profiles:
- ssl
volumes:
mysql_data:
uploads:
logs:
backups:
downloads: