-
Notifications
You must be signed in to change notification settings - Fork 28
/
docker-compose.local.yml
55 lines (55 loc) · 1.41 KB
/
docker-compose.local.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
version: '3.9'
services:
web:
image: 'htmlgraphic/apache:latest'
restart: unless-stopped
container_name: apache
volumes:
- '~/SITES/docker:/data' # <- Change to preferred local working dir
#- '/c/Users/southpark/docker:/data'
links:
- 'db:mysql'
ports:
- '80:80'
- '443:443'
env_file:
- .env
logging:
driver: "json-file"
options:
max-size: "200k"
max-file: "10"
db:
image: 'mysql:8.3.0'
restart: unless-stopped
container_name: db
volumes:
- 'db-data:/var/lib/mysql'
ports:
- '3306: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'
# container_name: apache_phpmyadmin
# ports:
# - '8080:443'
# volumes:
# - '/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: