-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
86 lines (79 loc) · 1.81 KB
/
Copy pathdocker-compose.yml
File metadata and controls
86 lines (79 loc) · 1.81 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.8'
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- /opt/config/nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./ssl:/etc/nginx/ssl
networks:
- securite-net
depends_on:
- minio
- apis-container
restart: unless-stopped
minio:
image: minio/minio
container_name: minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- ./minio/data:/data
networks:
- securite-net
restart: unless-stopped
apis-container:
build:
context: .
dockerfile: apis/Dockerfile
image: apis-server
container_name: apis-container
ports:
- "8080:8080"
volumes:
- /opt/config/db.json:/app/config.json
- /opt/config/auth.json:/app/auth.json
command: ./apis
networks:
- securite-net
depends_on:
- postgres
restart: unless-stopped
postgres:
image: postgres:16
container_name: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pgpass
POSTGRES_DB: pgdb
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- securite-net
restart: unless-stopped
redpanda:
image: redpandadata/redpanda:latest
container_name: kafka
command: >
redpanda start --overprovisioned --smp 1 --memory 512M --reserve-memory 0M
--check=false --kafka-addr PLAINTEXT://0.0.0.0:9092
--advertise-kafka-addr PLAINTEXT://localhost:9092
ports:
- "9092:9092"
- "9644:9644"
volumes:
postgres_data:
networks:
securite-net:
name: securite-net
driver: bridge