-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
128 lines (117 loc) · 2.61 KB
/
docker-compose.yml
File metadata and controls
128 lines (117 loc) · 2.61 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: '3.8'
services:
fogos.server:
image: nginx:1.21.0
expose:
- 80
volumes:
- ./.docker/server/nginx.conf:/etc/nginx/nginx.conf:ro
- ./.docker/server/conf.d:/etc/nginx/conf.d:ro
- .:/var/www/html:delegated
restart: unless-stopped
ports:
- 127.0.0.1:8080:80
networks:
fogos:
aliases:
- api.fogos.pt
fogos.api:
image: ghcr.io/fogospt/fogosapi
restart: unless-stopped
volumes:
- ./:/var/www/html
expose:
- 9000
networks:
- fogos
#fogos.mongodb:
#image: mongo:4.4.6
#expose:
#- 27017
#restart: unless-stopped
#volumes:
#- mongodb_data:/data/db
#- ./.docker/mongodb/timezone:/etc/timezone
#- ./.docker/mongodb/localtime:/etc/localtime
#networks:
#- fogos
fogos.redis:
image: redis:6.2.3-alpine
command: redis-server --appendonly yes --requirepass
expose:
- 6379
restart: unless-stopped
ports:
- 6379:6379
networks:
- fogos
fogos.minio:
image: minio/minio:RELEASE.2023-09-30T07-02-29Z
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
expose:
- 9000
- 9001
ports:
- "127.0.0.1:9000:9000"
volumes:
- /data:/data
restart: unless-stopped
networks:
- fogos
fogos.renderer:
build: ./renderer
expose:
- 3000
restart: unless-stopped
deploy:
resources:
limits:
cpus: 2
memory: 2048M
networks:
fogos:
aliases:
- fogos-renderer
fogos.scheduler:
image: ghcr.io/fogospt/fogosapi-scheduler
restart: unless-stopped
volumes:
- ./:/var/www/html
- ./.docker/scheduler/cron.d:/etc/cron.d
expose:
- 9000
depends_on:
- fogos.api
networks:
- fogos
entrypoint: ./.docker/scheduler/entrypoint.sh
fogos.worker:
image: ghcr.io/fogospt/fogosapi
restart: unless-stopped
volumes:
- ./:/var/www/html
expose:
- 9000
networks:
- fogos
command: php artisan queue:work --queue=default --sleep=3 --tries=3 --max-time=3600
fogos.worker-icnf:
image: ghcr.io/fogospt/fogosapi
restart: unless-stopped
volumes:
- ./:/var/www/html
expose:
- 9000
depends_on:
- fogos.mongodb
networks:
- fogos
command: php artisan queue:work --queue=icnf --sleep=3 --tries=3 --max-time=3600
volumes:
mongodb_data:
networks:
fogos:
name: fogos-api