-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
60 lines (60 loc) · 1.41 KB
/
docker-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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
services:
db:
image: postgres:alpine3.18
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=hcflinks
ports:
- 9988:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
# db:
# image: redis:alpine3.18
# restart: always
# ports:
# - '9988:6379'
# command: redis-server --save 20 1 --loglevel warning --requirepass password
# healthcheck:
# test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ]
# interval: 1s
# timeout: 3s
# retries: 5
#---------------------------------
# links-server:
# build: server/
# ports:
# - "8080:8080"
# - "8081:8081"
# environment:
# - LINKS_BACKEND=postgres
# - LINKS_PORT=8080
# - LINKS_ADMIN_PORT=8081
# - LINKS_DB_HOST=host.docker.internal
# - LINKS_DB_USER=postgres
# - LINKS_DB_PASSWORD=password
# - LINKS_DB_DATABASE=hcflinks
# - LINKS_DB_PORT=9988
#
# depends_on:
# db:
# condition: service_healthy
# links:
# - "db"
#---------------------------------
# links-frontend:
# build: frontend/
# ports:
# - "3000:3000"
# environment:
# - NODE_ENV=development
# - NEXT_PUBLIC_API_URL="localhost:8081"
# depends_on:
# db:
# condition: service_healthy
# links:
# - "db"