-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 997 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (41 loc) · 997 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
services:
db:
image: postgres:latest
container_name: db-realworld-back
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- db-realworld-back-volume:/var/lib/postgresql/data
ports:
- '5432:5432'
minio:
image: minio/minio:latest
container_name: minio-realworld-back
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
command: server /data --console-address :9001
ports:
- '9001:9001'
- '9000:9000'
volumes:
- minio-realworld-back-volume:/data
app:
build:
context: .
container_name: app-realworld-back
depends_on:
- minio
- db
env_file:
- .env
ports:
- '8080:8080'
volumes:
db-realworld-back-volume:
name: db-realworld-back-volume
minio-realworld-back-volume:
name: minio-realworld-back-volume