-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (54 loc) · 1.17 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
version: '3'
services:
app:
build:
context: .
dockerfile: ./docker-config/base/Dockerfile
image: 'tatami-lemp:2'
volumes:
- ./app:/var/www/html
networks:
- tatami
mysql:
image: 'mariadb:10'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
ports:
- '3306:3306'
volumes:
# - ./config/mysql:/docker-entrypoint-initdb.d
- 'tatami-mysql:/var/lib/mysql:rw'
networks:
- tatami
phpmyadmin:
image: phpmyadmin
environment:
PMA_HOST: '${DB_HOST}'
ports:
- '${PHPMYADMIN_PORT-8081}:80'
networks:
- tatami
depends_on:
- mysql
nginx:
image: nginx:alpine
ports:
- '${NGINX_PORT-8080}:80'
volumes:
- ./app:/var/www/html
- ./docker-config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker-config/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- tatami
depends_on:
- app
networks:
tatami:
driver: bridge
volumes:
tatami-mysql:
driver: local