-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
48 lines (45 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
37
38
39
40
41
42
43
44
45
46
47
48
version: '3.9'
services:
db:
container_name: mysql
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
ports:
- 3307:3306
volumes:
- ./docker/testing-db.sql:/docker-entrypoint-initdb.d/testing-db.sql
- db-vol:/var/lib/mysql
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin/phpmyadmin:latest
restart: always
environment:
UPLOAD_LIMIT: 200M
ports:
- 8080:80
depends_on:
- db
app:
build:
args:
user: polyglot
uid: 1000
APACHE_DOCUMENT_ROOT: /var/www/public
context: ./docker/php-apache
dockerfile: Dockerfile
image: php-apache
container_name: polyglot-app
restart: unless-stopped
working_dir: /var/www
volumes:
- ./:/var/www
ports:
- 80:80
- 443:443
depends_on:
- db
volumes:
db-vol: