-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
54 lines (48 loc) · 1.08 KB
/
docker-compose.yaml
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
version: "3.9"
services:
web:
container_name: gneppa_cont
build: .
restart: always
image: gneppa
entrypoint: /docker-entrypoint.sh
volumes:
- ./backend:/backend
- static_volume:/backend/staticfiles
depends_on:
- db
nginx:
image: nginx:latest
container_name: NGNIX
ports:
- 80:80
- 443:443
restart: always
volumes:
- ./backend:/backend
- ./nginx:/etc/nginx/conf.d
- static_volume:/backend/staticfiles
- ./certbot/www/:/var/www/certbot/:r
- ./certbot/conf/:/etc/letsencrypt/:r
depends_on:
- web
db:
image: postgres:latest
container_name: POSTGRES
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- 5433:5432
volumes:
- pgdata:/var/lib/posgresql/data
certbot:
container_name: CERTBOT
image: certbot/certbot
volumes:
- ./certbot/www/:/var/www/certbot/:rw
- ./certbot/conf/:/etc/letsencrypt/:rw
volumes:
static_volume:
pgdata: