This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.58 KB
/
docker-compose.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
version: "2.4"
services:
db:
image: postgres:14-alpine
restart: unless-stopped
command: postgres -c 'max_connections=100'
volumes:
- ./data/db:/var/lib/postgresql/data
- ./logs/db:/var/log/postgresql
environment:
- POSTGRES_DB=wklejka
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=haslo123
mailserver:
image: docker.io/mailserver/docker-mailserver:latest
domainname: example.com
volumes:
- ./data/mail/mail-data/:/var/mail/
- ./data/mail/mail-state/:/var/mail-state/
- ./data/mail/mail-logs/:/var/log/mail/
- ./data/mail/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
stop_grace_period: 1m
cap_add:
- NET_ADMIN
- SYS_PTRACE
cache:
image: redis:6.2.6-alpine
restart: unless-stopped
volumes:
- ./data/cache:/data
- ./logs/dev/cache:/var/log/redis
environment:
- REDIS_DB=0
backend:
build: ./Backend
restart: unless-stopped
environment:
- WKLEJKA_PROD=True
- EMAIL_HOST=localhost
- EMAIL_PORT=25
- EMAIL_USERNAME=user
- EMAIL_PASSWORD=password
volumes:
- ./logs/backend:/var/log/django
- ./data/user_media:/var/www/wklejka/user_media
depends_on:
- db
- cache
init: true
frontend:
build: ./Frontend
restart: unless-stopped
volumes:
- ./logs/frontend:/var/log/nginx
- ./data/user_media:/var/www/wklejka/user_media
depends_on:
- backend