-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
46 lines (42 loc) · 1.04 KB
/
compose.yaml
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
name: "restaurant-app-backend"
services:
minio:
ports:
- '9000:9000'
- '9001:9001'
container_name: 'minio-obj-storage'
tty: true
env_file: ./.env
volumes:
- 'minio-volume:/data'
environment:
- 'MINIO_ROOT_USER=${MINIO_ROOT_USER}'
- 'MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}'
image: 'quay.io/minio/minio'
command: 'server /data --console-address ":9001"'
restaurant-db:
image: 'postgres:latest'
tty: true
env_file: ./.env
container_name: 'restaurant-db'
environment:
- 'POSTGRES_DB=restaurant-db'
- 'POSTGRES_USER=${POSTGRES_USER}'
- 'POSTGRES_PASSWORD=${POSTGRES_PASSWORD}'
ports:
- '5432:5432'
volumes:
- 'restaurant-db-volume:/var/lib/postgresql/data'
restaurant-app-backend:
image: 'restaurant-app-backend:latest'
container_name: 'restaurant-app-backend'
tty: true
env_file: ./.env
depends_on:
- restaurant-db
- minio
ports:
- '8080:8080'
volumes:
restaurant-db-volume:
minio-volume: