Skip to content

Commit 2e163f9

Browse files
committed
fixing dockerfile
1 parent 9704f80 commit 2e163f9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
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/nginx.conf
6467
depends_on:
6568
- api
6669
- frontend

nginx/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM ghcr.io/perfetti/react1-app:latest as react-app
22

33
FROM nginx:alpine
4-
COPY --from=react-app /usr/share/nginx/html /react-app
54
COPY default.conf /etc/nginx/conf.d/default.conf
5+

0 commit comments

Comments
 (0)