-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (82 loc) · 2.02 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (82 loc) · 2.02 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
87
88
version: '3.8'
services:
# backend:
# build:
# context: .
# dockerfile: Dockerfile
# container_name: pro4tech_backend
# ports:
# - '3333:3333'
# env_file: .env
# environment:
# - NODE_ENV=development
# volumes:
# - .:/app
# - node_modules_cache:/app/node_modules
# depends_on:
# postgres:
# condition: service_healthy
# networks:
# - pro4tech_net
postgres:
image: postgres:16-alpine
container_name: pro4tech_postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- '5432:5432'
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${POSTGRES_USER}']
interval: 5s
timeout: 5s
retries: 5
mongo:
image: mongo:7
container_name: pro4tech_mongo
ports:
- '27017:27017'
volumes:
- mongo_data:/data/db
minio:
image: minio/minio:latest
container_name: pro4tech_minio
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
command: server /data --console-address ":9001"
ports:
- '9000:9000'
- '9001:9001'
volumes:
- minio_data:/data
minio-init:
image: minio/mc:latest
depends_on:
- minio
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 $${MINIO_ACCESS_KEY} $${MINIO_SECRET_KEY} &&
mc mb -p local/$${MINIO_BUCKET} || true &&
mc anonymous set public local/$${MINIO_BUCKET} || true
"
environment:
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
MINIO_BUCKET: ${MINIO_BUCKET}
volumes:
postgres_data:
name: pro4tech_postgres_data
mongo_data:
name: pro4tech_mongo_data
minio_data:
name: pro4tech_minio_data
node_modules_cache:
name: pro4tech_node_modules
networks:
pro4tech_net:
name: pro4tech_network
driver: bridge