-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (55 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
65 lines (55 loc) · 1.31 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
version: "3.8"
services:
nginx:
container_name: nginx
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./frontend/build:/usr/share/nginx/html:ro
- ./website:/var/www/website:ro
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
ports:
- "80:80"
- "443:443"
depends_on:
- backend
- frontend
- website
- certbot
website:
image: php:8.2-fpm
container_name: website
volumes:
- ./website:/var/www/website
backend:
build:
context: ./backend
secrets:
- backend_build_secrets
container_name: backend
secrets:
- backend_build_secrets
env_file:
- ./backend/.env
volumes:
- ./backend/pb_data:/pb/pb_data
expose:
- "8090"
frontend:
build: ./frontend
container_name: frontend
expose:
- "80"
depends_on:
- backend
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do sleep 12h & wait $${!}; certbot renew --webroot -w /var/www/certbot --quiet && nginx -s reload; done;'"
secrets:
backend_build_secrets:
file: .env.secret