-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
97 lines (88 loc) · 1.96 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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
networks:
fogos:
aliases:
- api.fogos.pt
fogos.api:
image: ghcr.io/fogospt/fogosapi
restart: unless-stopped
volumes:
- ./:/var/www/html
expose:
- 9000
depends_on:
- fogos.mongodb
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
expose:
- 6379
restart: unless-stopped
networks:
- fogos
fogos.chrome:
image: 'zenika/alpine-chrome:81'
entrypoint: [ "chromium-browser", "--headless", "--no-sandbox", "--remote-debugging-address=0.0.0.0", "--remote-debugging-port=9222" ]
expose:
- 9222
restart: always
deploy:
resources:
limits:
cpus: 2
memory: 4048M
networks:
- fogos
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
depends_on:
- fogos.mongodb
networks:
- fogos
command: php artisan queue:work --sleep=3 --tries=3 --max-time=3600
volumes:
mongodb_data:
networks:
fogos:
name: fogos-api