-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
77 lines (76 loc) · 1.45 KB
/
docker-compose.prod.yml
File metadata and controls
77 lines (76 loc) · 1.45 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
services:
web:
build:
context: ./
dockerfile: web-prod.dockerfile
container_name: sendy_web
ports:
- "443:443"
links:
- app
restart: unless-stopped
networks:
- default
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
app:
build:
context: ./
dockerfile: app-prod.dockerfile
container_name: sendy_app
restart: unless-stopped
volumes:
- appStorage:/var/www/storage
- appVendor:/var/www/vendor
- appLogs:/var/www/storage/logs
networks:
- default
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
nodejs:
image: node:23-alpine
container_name: sendy_nodejs
volumes:
- ./:/var/www/
working_dir: /var/www
networks:
- default
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
filebeat:
build:
context: ./
dockerfile: filebeat.dockerfile
container_name: sendy_filebeat
environment:
- strict.perms=false
- "LOGSTASH_HOST=${LOGSTASH_HOST}"
volumes:
- appLogs:/app/log/
restart: always
networks:
- default
logging:
driver: "json-file"
options:
max-size: 5m
max-file: "3"
volumes:
appStorage:
appVendor:
appLogs:
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/16