-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (56 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
60
version: "3.8"
services:
mysql:
build:
context: ./mysql
container_name: mysql
restart: always
tty: true
volumes:
- ./db:/var/lib/mysql
ports:
- "4001:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: docker
MYSQL_PASSWORD: docker
nginx:
build:
context: ./nginx
container_name: nginx
restart: always
tty: true
ports:
- "80:80"
environment:
VIRTUAL_HOST: 'docker.local'
LETSENCRYPT_HOST: 'docker.local'
LETSENCRYPT_EMAIL: '[email protected]'
APP_FASTCGI_PASS: 'php:9000'
volumes:
- ./app:/var/www/html
depends_on:
- php
php:
build:
context: ./php
container_name: php
tty: true
restart: always
volumes:
- ./app:/var/www/html
depends_on:
- mysql
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: myadmin
environment:
PMA_HOST: ${PHP_PMA_HOST}
PMA_PORT: ${PHP_PMA_PORT}
UPLOAD_LIMIT: 50M
ports:
- "8008:80"
volumes:
- /sessions
depends_on:
- mysql