This repository has been archived by the owner on Oct 21, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
80 lines (73 loc) · 1.62 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
version: '3'
volumes:
jira_custom_dashboard-mysql_data:
driver: local
networks:
jira_custom_dashboard-network:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.72.0.0/24
services:
apache:
build: docker/apache
working_dir: /var/www/
environment:
- APACHE_RUN_USER=www-data
- APACHE_RUN_GROUP=www-data
- APACHE_PID_FILE=/var/run/apache2/apache2.pid
- APACHE_RUN_DIR=/var/run/apache2
- APACHE_LOCK_DIR=/var/lock/apache2
- APACHE_LOG_DIR=/var/log/apache2
networks:
jira_custom_dashboard-network:
aliases:
- apache
volumes:
- .:/var/www
tty: true
mysql:
container_name: mysql
image: mysql:5.7
networks:
jira_custom_dashboard-network:
aliases:
- mysql
ipv4_address: 172.72.0.101
volumes:
- jira_custom_dashboard-mysql_data:/var/lib/mysql
php:
build: docker/php
working_dir: /var/www/
expose:
- 9000
networks:
jira_custom_dashboard-network:
aliases:
- php
volumes:
- .:/var/www
# container usage:
# docker-compose run testing /var/www/vendor/bin/phpunit
cli:
build: docker/php-cli
working_dir: /var/www/
networks:
jira_custom_dashboard-network:
aliases:
- cli
volumes:
- .:/var/www
# container usage:
# docker-compose run composer [command]
composer:
build: docker/composer
working_dir: /var/www/
networks:
jira_custom_dashboard-network:
aliases:
- composer
volumes:
- .:/var/www
command: -q