-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·50 lines (50 loc) · 1.18 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
version: '3.8'
services:
db:
container_name: db
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: toor
MYSQL_DATABASE: project
MYSQL_USER: admin
MYSQL_PASSWORD: toor
ports:
- "9906:3306"
networks:
projectNetwork:
ipv4_address: 10.20.0.5
php-apache-environment:
container_name: php-apache
build:
context: /home/seed/php
dockerfile: Dockerfile
restart: always
depends_on:
- db
volumes:
- /home/seed/php:/var/www/html/
ports:
- 6060:80
networks:
projectNetwork:
ipv4_address: 10.20.0.6
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- '7070:80'
networks:
projectNetwork:
ipv4_address: 10.20.0.7
restart: always
environment:
PMA_HOST: db
depends_on:
- db
networks:
projectNetwork:
driver: bridge
ipam:
config:
- subnet: 10.20.0.0/16
gateway: 10.20.0.1