-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
58 lines (54 loc) · 1.14 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
version: '3.8'
services:
api:
container_name: api
build:
context: ./api
target: dev
ports:
- '5050:5050'
env_file:
- .env
volumes:
- ./api:/app
- ./.data/api:/.data
- /var/run/docker.sock:/var/run/docker.sock
networks:
- process_api_net
depends_on:
minio:
condition: service_started
postgres:
condition: service_healthy
minio:
container_name: minio
image: minio/minio:RELEASE.2023-08-23T10-07-06Z.fips
command: server /data --console-address ":9001"
env_file:
- .env
ports:
- '9000:9000'
- '9001:9001'
volumes:
- ./.data/minio:/data
networks:
- process_api_net
postgres:
container_name: postgres
image: postgres:16.1-alpine3.18
env_file:
- .env
ports:
- '5432:5432'
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB']
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./.data/postgres:/var/lib/postgresql/data
networks:
- process_api_net
networks:
process_api_net:
external: true