Skip to content

Commit 87b5b94

Browse files
committed
fix: Update docker-compose files and remove unused nginx configuration
1 parent ead6892 commit 87b5b94

File tree

4 files changed

+22
-146
lines changed

4 files changed

+22
-146
lines changed

docker-compose.local.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
context: .
77
dockerfile: Dockerfile.dev
88
restart: always
9+
ports:
10+
- "81:80"
911
networks:
1012
- nmrium-network
1113
environment:
@@ -26,21 +28,6 @@ services:
2628
networks:
2729
- nmrium-network
2830

29-
# Nginx reverse proxy
30-
nginx-proxy:
31-
container_name: nginx-proxy
32-
image: nginx:stable-alpine
33-
ports:
34-
- "8080:80" # Dev environment on port 8080
35-
- "8081:81" # Prod environment on port 8081
36-
volumes:
37-
- ./nginx/proxy.conf:/etc/nginx/conf.d/default.conf
38-
depends_on:
39-
- nmrium-dev
40-
- nmrium-prod
41-
networks:
42-
- nmrium-network
43-
4431
networks:
4532
nmrium-network:
4633
driver: bridge

docker-compose.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,44 @@
1-
version: '3.7'
1+
version: "3.8"
22

33
services:
44
# Development environment
55
nmrium-dev:
66
container_name: nmrium-dev
77
image: nfdi4chem/nmrium-react-wrapper:dev-latest
8-
restart: always
8+
restart: unless-stopped
9+
ports:
10+
- "81:80"
911
networks:
1012
- nmrium-network
1113
environment:
1214
- NODE_ENV=development
1315
- CHOKIDAR_USEPOLLING=true
16+
healthcheck:
17+
test: ["CMD", "curl", "-f", "http://localhost:80"]
18+
interval: 10s
19+
timeout: 5s
20+
retries: 5
21+
start_period: 5s
1422

1523
# Production environment
1624
nmrium-prod:
1725
container_name: nmrium-prod
1826
image: nfdi4chem/nmrium-react-wrapper:latest
19-
restart: always
27+
restart: unless-stopped
28+
ports:
29+
- "80:80"
2030
networks:
2131
- nmrium-network
2232
environment:
2333
- NODE_ENV=production
2434
- RELEASE_VERSION=latest
25-
26-
# Nginx reverse proxy
27-
nginx-proxy:
28-
container_name: nginx-proxy
29-
image: nginx:stable-alpine
30-
ports:
31-
- "8080:80" # Dev environment on port 8080
32-
- "8081:81" # Prod environment on port 8081
33-
volumes:
34-
- ./nginx/proxy.conf:/etc/nginx/conf.d/default.conf
35-
depends_on:
36-
- nmrium-dev
37-
- nmrium-prod
38-
networks:
39-
- nmrium-network
35+
healthcheck:
36+
test: ["CMD", "curl", "-f", "http://localhost:80"]
37+
interval: 10s
38+
timeout: 5s
39+
retries: 5
40+
start_period: 5s
4041

4142
networks:
4243
nmrium-network:
43-
driver: bridge
44+
driver: bridge

nginx/nginx.conf

Lines changed: 0 additions & 36 deletions
This file was deleted.

nginx/proxy.conf

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)