-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.33 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
version: "3"
services:
gardn-web:
build:
context: ./
dockerfile: nginx.Dockerfile
ports:
- "8088:80"
volumes:
- ./:/code
- ./gardn.nginx.conf:/etc/nginx/conf.d/gardn.conf
- templates-gardn:/tmp/twig/gardn
links:
- gardn-php
networks:
- gardn-network
depends_on:
- gardn-mysql
- gardn-php
gardn-php:
build:
context: ./
dockerfile: php-fpm.Dockerfile
volumes:
- ./:/code
- templates-gardn:/tmp/twig/gardn
command: /bin/sh -c "cd /code && composer install && php-fpm"
networks:
- gardn-network
depends_on:
- gardn-mysql
gardn-mysql:
build:
context: ./
dockerfile: mysql.Dockerfile
volumes:
- mysql-gardn:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
- MYSQL_ROOT_PASSWORD=gardn
- MYSQL_DATABASE=gardn
- MYSQL_USER=gardn
- MYSQL_PASSWORD=gardn
networks:
- gardn-network
volumes:
mysql-gardn:
templates-gardn:
networks:
gardn-network:
driver: bridge