-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.prod.yml
73 lines (68 loc) · 1.43 KB
/
docker-compose.prod.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
name: goblfc/tracker
services:
app:
image: ghcr.io/goblfc/tracker
build:
context: ./
dockerfile: .docker/app/Dockerfile
restart: always
env_file:
- .docker/app.env
volumes:
- app-logs:/var/www/html/storage/logs
depends_on:
- postgres
- redis
postgres:
image: postgres:17
restart: always
env_file:
- .docker/postgres.env
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:7
command:
- /bin/sh
- -c
- redis-server --save 60 1 --loglevel warning --requirepass "$${REDIS_PASSWORD:?REDIS_PASSWORD not provided}"
restart: always
env_file:
- .docker/redis.env
volumes:
- redis:/data
nginx:
image: ghcr.io/goblfc/tracker-nginx
build:
context: ./
dockerfile: .docker/nginx/Dockerfile
restart: always
env_file:
- .docker/nginx.env
ports:
- '80:80'
- '443:443'
volumes:
- certbot-conf:/etc/letsencrypt
- certbot-www:/var/www/certbot
depends_on:
- app
certbot:
image: ghcr.io/goblfc/tracker-certbot
build:
context: ./
dockerfile: .docker/certbot/Dockerfile
restart: unless-stopped
env_file:
- .docker/certbot.env
volumes:
- certbot-conf:/etc/letsencrypt
- certbot-www:/var/www/certbot
depends_on:
- nginx
volumes:
app-logs:
postgres:
redis:
certbot-conf:
certbot-www: