-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.yml
50 lines (50 loc) · 1.26 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
version: '3.9'
services:
web:
image: 'htmlgraphic/apache:envoyer'
restart: unless-stopped
ports:
- "80:80"
- "443:443"
env_file:
- .env
volumes:
- '/var/data:/data'
- '/var/data/letsencrypt:/etc/letsencrypt'
links:
- "db:mysql"
db:
image: 'mysql:8.3.0'
restart: unless-stopped
volumes:
- 'db-data:/var/lib/mysql'
ports:
- '3306'
env_file:
- .env
command: mysqld --sql_mode="ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION"
# phpmyadmin:
# image: 'osixia/phpmyadmin:5.0.2'
# restart: unless-stopped
# container_name: apache_phpmyadmin
# ports:
# - '8080:443'
# volumes:
# - /tmp
# - '/var/data/letsencrypt:/etc/letsencrypt'
# - '/var/data/letsencrypt:/container/service/phpmyadmin/assets/apache2/certs'
# links:
# - 'db:mysql'
# environment:
# - PHPMYADMIN_DB_HOSTS=mysql
# - PHPMYADMIN_HTTPS_CRT_FILENAME=cert.pem
# - PHPMYADMIN_HTTPS_KEY_FILENAME=privkey.pem
# - PHPMYADMIN_HTTPS_CA_CRT_FILENAME=fullchain.pem
# redis:
# image: redis
# container_name: redis
# restart: unless-stopped
# # ports:
# # - '6379:6379'
volumes:
db-data: