-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (32 loc) · 878 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (32 loc) · 878 Bytes
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
services:
frontend:
build:
context: .
dockerfile: Dockerfile
target: dev
container_name: tinyurl-frontend
volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
ports:
- "4200:4200"
networks:
- tinyurl_public
depends_on:
- nginx-check
restart: unless-stopped
# Lightweight check to surface a clear error if the backend stack isn't up
nginx-check:
image: alpine:3.19
container_name: tinyurl-nginx-check
command: >
sh -c "until wget -qO- http://tinyurl-nginx/actuator/health > /dev/null 2>&1;
do echo 'Waiting for backend...'; sleep 3; done; echo 'Backend is up'"
networks:
- tinyurl_public
restart: "no"
networks:
tinyurl_public:
external: true # created by parent docker-compose in /tinyurl