-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (77 loc) · 1.76 KB
/
docker-compose.yml
File metadata and controls
83 lines (77 loc) · 1.76 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
volumes:
redis:
static:
gallery-media:
logs:
gallery-data:
web-bash-history:
services:
django:
build:
context: ./django
container_name: ig-django
ports:
- 8000:8000
volumes:
- static:/opt/static/:rw
- logs:/opt/logs/:rw
- ./django:/opt/:rw
- web-bash-history:/root/hist:rw
- gallery-media:/opt/media/:rw
depends_on:
- postgres
env_file: .env
environment:
HISTFILE: /root/hist/.bash_history
PROMPT_COMMAND: "history -a;history -r;"
restart: unless-stopped
redis:
container_name: ig-redis
image: redis:7.4.2-alpine
volumes:
- redis:/data:rw
ports:
- 127.0.0.1:6379:6379
postgres:
image: postgres:16.2
container_name: ig-postgres
volumes:
- gallery-data:/var/lib/postgresql/data:rw
env_file: .env
ports:
- 5432:5432
restart: unless-stopped
nginx:
platform: linux/amd64
image: nginx:latest
container_name: ig-nginx
depends_on:
- django
ports:
- 80:80
- 443:443
volumes:
- ./nginx/templates/default.conf.template:/etc/nginx/templates/default.conf.template:ro
- static:/static:ro
- gallery-media:/media:ro
- ./certbot/www/:/var/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/ssl/:ro
env_file: .env
restart: unless-stopped
varnish:
image: varnish:stable
container_name: ig-varnish
depends_on:
- nginx
- django
volumes:
- ./varnish/varnish.vcl:/etc/varnish/default.vcl
environment:
- VARNISH_SIZE=512M
restart: unless-stopped
certbot:
image: certbot/certbot:latest
container_name: ig-certbot
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw