-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (48 loc) · 1.09 KB
/
docker-compose.yml
File metadata and controls
51 lines (48 loc) · 1.09 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
services:
postgres:
image: postgres:17.5
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: mydb
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- 5432:5432
networks:
- my-bridge
app:
build: .
ports:
- 3000:3000
environment:
DATABASE_URL: ${DATABASE_URL}
PORT: ${PORT}
MINIO_ENDPOINT: ${MINIO_ENDPOINT}
MINIO_PORT: ${MINIO_PORT}
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_BUCKET_NAME: ${MINIO_BUCKET_NAME}
depends_on:
- postgres
networks:
- my-bridge
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
command: server --console-address ":9001" /data
volumes:
- minio_data:/data
networks:
- my-bridge
volumes:
postgres_data:
minio_data: {}
networks:
my-bridge:
driver: bridge