-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (39 loc) · 791 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (39 loc) · 791 Bytes
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
version: "3.8"
services:
cutr-app:
build: .
container_name: cutr-app
restart: always
ports:
- "8080:8080"
env_file: .env
depends_on:
- cutr-redis
- cutr-postgres
cutr-postgres:
image: postgres:16
container_name: cutr-postgres
restart: always
env_file: .env
expose:
- "5432"
volumes:
- pgdata:/var/lib/postgresql/data
- ./migrations:/docker-entrypoint-initdb.d/
cutr-redis:
image: redis:alpine
container_name: cutr-redis
restart: unless-stopped
command: redis-server --appendonly yes
expose:
- "6379"
volumes:
- redis_data:/data
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "1"
volumes:
pgdata:
redis_data: