-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (46 loc) · 961 Bytes
/
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:
www:
container_name: www
build:
context: .
dockerfile: php.Dockerfile
restart: always
ports:
- 80:80
- 443:443
volumes:
- ./www:/var/www/html/
- ./sites-available/www/:/etc/apache2/sites-available
- ./logs:/var/log/apache2/
- /etc/letsencrypt/:/etc/letsencrypt/
secrets:
- password
db:
container_name: db
image: mysql:8.0.31
restart: always
expose:
- 3306
environment:
MYSQL_ROOT_PASSWORD_FILE: /run/secrets/password
volumes:
- db-data:/var/lib/mysql
secrets:
- password
admin:
container_name: admin
build:
context: .
dockerfile: admin.Dockerfile
restart: always
ports:
- 82:443
volumes:
- ./sites-available/admin/:/etc/apache2/sites-available
- /etc/letsencrypt/:/etc/letsencrypt/
secrets:
password:
file: password.txt
volumes:
db-data: