-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
36 lines (33 loc) · 956 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
version: "3.8"
services:
mysql_database:
image: mysql:8.0.27
restart: always
environment:
MYSQL_ROOT_PASSWORD: passwordmanager123
MYSQL_DATABASE: password_manager # Database name (do not change)
MYSQL_USER: nouser # no need
MYSQL_PASSWORD: nouserpassword # no need
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
- ./starter.sql:/docker-entrypoint-initdb.d/starter.sql # SQL script for initialization (do not change)
php_apache:
depends_on:
- mysql_database
build: .
environment:
MYSQL_HOST: mysql_database
MYSQL_PORT: 3306
MYSQL_USER: root # don't change
MYSQL_PASSWORD: passwordmanager123
EMAIL_FROM: [email protected]
REPLY_TO: [email protected]
ports:
- "80:80"
volumes:
- encrypted-user-data:/srv/password_manager_data
volumes:
mysql-data:
encrypted-user-data: