-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.56 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
65
66
67
68
69
70
71
version: '3.9'
services:
application:
build:
dockerfile: ./docker/backend_docker/Dockerfile
restart: always
environment:
POSTGRES_DSN: postgresql://postgres:password@db/postgres
POSTGRES_SERVER: db
POSTGRES_PORT: 5432
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
REDIS_HOST: cache
REDIS_PORT: 6379
REDIS_PASSWORD: eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
depends_on:
- db
- cache
- minio-server
ports:
- "8080:8080"
networks:
- enrollment
minio-server:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: user
MINIO_ROOT_PASSWORD: password
volumes:
- ./minio-data:/data
networks:
- enrollment
command: server /data --console-address :9001
db:
image: postgres:15.2-alpine
environment:
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
restart: always
networks:
- enrollment
volumes:
- ./db_logs:/var/lib/postgresql/logs
command: postgres -c log_statement=all -c logging_collector=on -c log_directory=/var/lib/postgresql/logs -c log_filename=postgresql.log
cache:
image: redis:6.2-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- cache:/data
networks:
- enrollment
volumes:
cache:
driver: local
minio-data:
networks:
enrollment:
driver: bridge