-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
executable file
·82 lines (78 loc) · 1.89 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
81
82
services:
nginx:
container_name: nginx
hostname: nginx
image: unlikelysource/nginx_img
ports:
- 8888:80
volumes:
- ".:/repo"
- "./docker/secrets.sh:/tmp/secrets.sh"
- "./docker/nginx.startup.sh:/tmp/startup.sh"
- "./docker/nginx.default.conf:/etc/nginx/http.d/default.conf"
build:
context: ./docker
dockerfile: Dockerfile.NGINX
working_dir: /repo
command: /tmp/startup.sh
restart: always
networks:
php8cookbook_net:
ipv4_address: 10.10.10.10
mysql:
container_name: mysql
hostname: mysql
image: unlikelysource/mysql_img
build:
context: ./docker
dockerfile: Dockerfile.MySQL
volumes:
- .:/repo
- "./docker/secrets.sh:/tmp/secrets.sh"
- "./docker/mysql.startup.sh:/tmp/startup.sh"
working_dir: /repo
command: /tmp/startup.sh
restart: always
networks:
php8cookbook_net:
ipv4_address: 10.10.10.20
php8:
container_name: php8
hostname: php8
image: unlikelysource/php8_img
volumes:
- ".:/repo"
- "./docker/secrets.sh:/tmp/secrets.sh"
- "./docker/php8.startup.sh:/tmp/startup.sh"
build:
context: ./docker
dockerfile: Dockerfile.PHP8
working_dir: /repo
command: /tmp/startup.sh
restart: always
networks:
php8cookbook_net:
ipv4_address: 10.10.10.88
php7:
container_name: php7
hostname: php7
image: unlikelysource/php7_img
volumes:
- ".:/repo"
- "./docker/secrets.sh:/tmp/secrets.sh"
- "./docker/php7.startup.sh:/tmp/startup.sh"
build:
context: ./docker
dockerfile: Dockerfile.PHP7
working_dir: /repo
command: /tmp/startup.sh
restart: always
networks:
php8cookbook_net:
ipv4_address: 10.10.10.77
networks:
php8cookbook_net:
ipam:
driver: default
config:
- subnet: "10.10.10.0/24"