-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1022 Bytes
/
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
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/dev/db:/var/log/postgresql
environment:
- POSTGRES_DB=fileplace
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=haslo123
backend:
build: ./backend
restart: unless-stopped
volumes:
- ./backend:/code
- ./data:/var/fileplace
depends_on:
- db
- cache
env_file:
- backend.env
init: true
cache:
image: redis:6.2.6-alpine
restart: unless-stopped
volumes:
- ./data/cache:/data
- ./logs/dev/cache:/var/log/redis
environment:
- REDIS_DB=0
frontend:
build: ./frontend
restart: unless-stopped
volumes:
- ./logs/frontend:/var/log/nginx
- ./data/media:/var/www/fileplace/user_media
depends_on:
- backend
ports:
- "80:80"