Skip to content

Commit c386a1a

Browse files
authored
Update docker config for deplyoment (#6)
1 parent a854d42 commit c386a1a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

deployment/docker-compose.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ services:
1717
condition: service_started
1818
course-hub-frontend:
1919
condition: service_started
20+
2021
# Postgres, main data store used by course-hub-backend
2122
postgres:
2223
image: postgres:18
@@ -30,23 +31,22 @@ services:
3031
- postgres:/var/lib/postgresql
3132
ports:
3233
- "5432:5432"
34+
3335
# Redis, auth session storage used by course-hub-backend
3436
redis:
3537
image: redis:7
3638
container_name: redis
3739
restart: on-failure
3840
volumes:
3941
- redis:/data
40-
ports:
41-
- "6379:6379"
42+
4243
course-hub-frontend:
4344
image: ghcr.io/hackyourfuture/course-hub-frontend:latest
4445
container_name: course-hub-frontend
4546
restart: on-failure
4647
environment:
47-
BACKEND_URL: http://159.223.215.103/api
48-
ports:
49-
- "3000:3000"
48+
BACKEND_URL: https://coursehub.hyf.dev/api
49+
5050
course-hub-backend:
5151
image: ghcr.io/hackyourfuture/course-hub-backend:latest
5252
container_name: course-hub-backend
@@ -62,8 +62,7 @@ services:
6262
condition: service_started
6363
redis:
6464
condition: service_started
65-
ports:
66-
- "8080:8080"
65+
6766
# Agent that monitors whenever new versions of images are published and recreates the containers
6867
watchtower:
6968
image: containrrr/watchtower

0 commit comments

Comments
 (0)