-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (41 loc) · 835 Bytes
/
docker-compose.yml
File metadata and controls
46 lines (41 loc) · 835 Bytes
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
version: '2.1'
services:
php-apache:
image: php:${PHP_APACHE_VERSION:-7.1-apache}
ports:
- "80:80"
env_file: .env
volumes:
- .:/var/www/html
networks:
phpskeleton:
ipv4_address: 172.16.1.100
mysql:
image: mysql:${MYSQL_VERSION:-5.6}
ports:
- "3306:3306"
env_file: .env
volumes:
- ./.mysqldata:/var/lib/mysql
networks:
phpskeleton:
ipv4_address: 172.16.1.101
phpmyadmin:
image: phpmyadmin/phpmyadmin:${PHPMYADMIN_VERSION:-4.7}
ports:
- "8080:80"
env_file: .env
links:
- mysql:db
networks:
phpskeleton:
ipv4_address: 172.16.1.102
networks:
phpskeleton:
driver: bridge
ipam:
config:
- subnet: 172.16.1.0/24
volumes:
.mysqldata:
driver: local