-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (43 loc) · 978 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (43 loc) · 978 Bytes
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
version: '3.3'
services:
secured_web:
build:
context: .
dockerfile: Dockerfile-https
container_name: https
depends_on:
- db
links:
- "db:database"
volumes:
- ./public_html:/var/www/html
ports:
- 8080:80
- 443:443
web:
build:
context: .
dockerfile: Dockerfile-http
container_name: http
depends_on:
- db
links:
- "db:database"
volumes:
- ./public_html:/var/www/html
ports:
- 80:80
db:
container_name: mysql8
image: mysql:8.0
volumes:
- ./sql/init.sql:/data/application/init.sql
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8 --collation-server=utf8_general_ci --init-file /data/application/init.sql
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1234
MYSQL_DATABASE: accounts
MYSQL_USER: admin
MYSQL_PASSWORD: 1234
ports:
- 3306:3306