forked from oat-sa/package-tao
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (45 loc) · 938 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
49
50
version: '2'
services:
tao_nginx:
container_name: tao_nginx
image: nginx:stable
networks:
- tao_network
ports:
- "8085:80"
volumes_from:
- tao_phpfpm
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:cached
working_dir: /etc/nginx/conf.d
tao_phpfpm:
container_name: tao_phpfpm
build:
context: ./docker/phpfpm
expose:
- 9000
networks:
- tao_network
volumes:
- .:/var/www/html:cached
working_dir: /var/www/html
tao_db:
container_name: tao_db
image: mariadb:latest
networks:
- tao_network
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: r00t
MYSQL_USER: tao
MYSQL_PASSWORD: tao
MYSQL_DATABASE: tao
volumes:
- tao_mariadb_data:/var/lib/mysql:cached
volumes:
tao_mariadb_data:
driver: local
networks:
tao_network:
driver: bridge