-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
59 lines (59 loc) · 1.16 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
services:
php:
build:
dockerfile: Dockerfile
restart: unless-stopped
tty: true
links:
- db
volumes:
- ./src:/var/www/html/
profiles:
- dev
- prod
web:
build:
dockerfile: Dockerfile-apache
image: ubuntu/apache2:2.4-22.04_beta
restart: unless-stopped
tty: true
links:
- php
ports:
- "127.0.0.1:${WEB_PORT:?}:80"
volumes:
- ./src/:/var/www/html
- ./data/apache2/logs:/var/log/apache2
profiles:
- dev
- prod
db:
image: mysql:latest
restart: unless-stopped
tty: true
expose:
- "127.0.0.1:${MYSQL_PORT:?}:3306"
volumes:
- ./data/db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD:?}"
MYSQL_DATABASE: "${MYSQL_DATABASE:?}"
MYSQL_USER: "${MYSQL_USER:?}"
MYSQL_PASSWORD: "${MYSQL_PASSWORD:?}"
profiles:
- dev
- prod
phpmyadmin:
image: phpmyadmin/phpmyadmin
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 50M
restart: "no"
ports:
- "28001:80"
profiles:
- dev