-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (54 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
58 lines (54 loc) · 1.26 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
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
volumes:
postgres_data:
name: pro4tech_postgres_data
mongo_data:
name: pro4tech_mongo_data
# node_modules_cache:
# name: pro4tech_node_modules
# networks:
# pro4tech_net:
# name: pro4tech_network
# driver: bridge