Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (93 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
99 lines (93 loc) · 2.05 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
services:
web:
build:
context: .
dockerfile: ./.docker/nginx/Dockerfile
restart: unless-stopped
ports:
- 25564:80
volumes:
- public:/var/www/public/build:ro
- storage:/var/www/storage:rw
networks:
- mcarchivist
depends_on:
php:
condition: service_healthy
php:
build:
context: .
dockerfile: ./.docker/php/Dockerfile
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
- IS_APPLICATION=true
env_file:
- ./.env.prod.example
volumes:
- public:/var/www/public/build
- storage:/var/www/storage:rw
networks:
- mcarchivist
healthcheck:
test: [ "CMD-SHELL", "netstat -an | grep :9000" ]
interval: 10s
timeout: 3s
retries: 10
start_period: 300s
scheduler:
build:
context: .
dockerfile: ./.docker/php/Dockerfile
command: php artisan schedule:work
restart: unless-stopped
stop_signal: SIGTERM
depends_on:
php:
condition: service_healthy
env_file:
- ./.env.prod.example
volumes:
- storage:/var/www/storage:rw
networks:
- mcarchivist
queue-worker:
build:
context: .
dockerfile: ./.docker/php/Dockerfile
command: php artisan queue:work
restart: unless-stopped
stop_signal: SIGTERM
depends_on:
php:
condition: service_healthy
env_file:
- ./.env.prod.example
volumes:
- storage:/var/www/storage:rw
networks:
- mcarchivist
postgres:
image: postgres:18
restart: unless-stopped
environment:
- POSTGRES_DB=mcarchivist
- POSTGRES_USER=root
- POSTGRES_PASSWORD=p4ssw0rd
volumes:
- postgres_data:/var/lib/postgresql
networks:
- mcarchivist
healthcheck:
test: [ "CMD-SHELL", "pg_isready -h localhost -U $${POSTGRES_USER} -d $${POSTGRES_DB}" ]
interval: 10s
timeout: 5s
retries: 5
networks:
mcarchivist:
volumes:
postgres_data:
public:
storage: