-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
113 lines (113 loc) · 2.32 KB
/
docker-compose.dev.yml
File metadata and controls
113 lines (113 loc) · 2.32 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
services:
web:
build:
context: ./
dockerfile: docker/web-dev.dockerfile
container_name: buzzer_web
volumes:
- ./:/var/www
ports:
- "8085:80"
links:
- app
networks:
static-network:
ipv4_address: 10.100.0.7
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
nodejs:
build:
context: ./
dockerfile: docker/node.dockerfile
args:
- NODE_VERSION=22
container_name: buzzer_nodejs
volumes:
- ./:/var/www/
networks:
static-network:
ipv4_address: 10.100.0.2
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
app:
build:
context: ./
dockerfile: docker/php/app-dev.dockerfile
args:
- USER=${USER}
networks:
static-network:
ipv4_address: 10.100.0.3
container_name: buzzer_app
volumes:
- ./:/var/www
links:
- database
- redis
environment:
- "DB_HOST=database"
- "DB_PORT=3306"
- "DB_DATABASE=buzzer"
- "REDIS_HOST=redis"
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
database:
image: mysql:8.4.5
container_name: buzzer_db
environment:
- "MYSQL_ROOT_PASSWORD=secret"
- "MYSQL_DATABASE=buzzer"
ports:
- "33064:3306"
networks:
static-network:
ipv4_address: 10.100.0.4
redis:
container_name: buzzer_redis
image: redis:7.2.0
ports:
- "6379:6379"
networks:
static-network:
ipv4_address: 10.100.0.8
phpmyadmin:
image: "phpmyadmin/phpmyadmin"
container_name: buzzer_phpmyadmin
networks:
static-network:
ipv4_address: 10.100.0.5
links:
- database
ports:
- "8086:80"
environment:
- "PMA_HOST=database"
- "PMA_USER=root"
- "PMA_PASSWORD=secret"
filebeat:
build:
context: ./
dockerfile: docker/filebeat/filebeat.dockerfile
container_name: buzzer_filebeat
environment:
- strict.perms=false
volumes:
- ./storage/logs/:/app/log/
networks:
static-network:
ipv4_address: 10.100.0.9
networks:
static-network:
ipam:
config:
- subnet: 10.100.0.0/16
ip_range: 10.100.0.0/16