Skip to content

Commit a4ee3c0

Browse files
committed
fixing dockerfile
1 parent 9704f80 commit a4ee3c0

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

docker-compose.local.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ services:
2525
volumes:
2626
- ./postgres_data:/var/lib/postgresql/data
2727

28+
nginx:
29+
extends:
30+
file: docker-compose.yaml
31+
service: nginx
32+
2833
volumes:
2934
postgres_data:
3035

docker-compose.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ services:
6161
image: nginx:alpine
6262
ports:
6363
- 8089:80
64+
restart: always
65+
volumes:
66+
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
6467
depends_on:
6568
- api
6669
- frontend

nginx/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
FROM ghcr.io/perfetti/react1-app:latest as react-app
2-
31
FROM nginx:alpine
4-
COPY --from=react-app /usr/share/nginx/html /react-app
5-
COPY default.conf /etc/nginx/conf.d/default.conf

0 commit comments

Comments
 (0)