-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.1 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
version: "3.4"
services:
web:
build:
context: .
dockerfile: ./docker/Dockerfile
pull_policy: build
ports:
- "${WEB_HTTP_PORT}:80"
- "${WEB_HTTPS_PORT}:443"
environment:
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_SERVERNAME=${MYSQL_SERVERNAME}
- MYSQL_INTERNAL_PORT=${MYSQL_INTERNAL_PORT}
- MAIL_PASSWORD_NOREPLY=${MAIL_PASSWORD_NOREPLY}
- MAIL_PASSWORD_ADMIN=${MAIL_PASSWORD_ADMIN}
- MAIL_API_KEY=${MAIL_API_KEY}
- MAIL_SERVER=${MAIL_SERVER}
- MAIL_WITH_API=${MAIL_WITH_API}
db:
image: mysql:latest
ports:
- "${MYSQL_EXTERNAL_PORT}:3306"
volumes:
- phpwebapp_db_data:/var/lib/mysql
environment:
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_ALLOW_EMPTY_PASSWORD=1
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "${PHPMYADMIN_EXTERNAL_PORT}:80"
environment:
- PMA_HOST=db
- PMA_PORT=3306
volumes:
phpwebapp_db_data: