diff --git a/infra/docker/.env.blackjack-backend b/infra/docker/.env.blackjack-backend new file mode 100644 index 0000000..fbbb009 --- /dev/null +++ b/infra/docker/.env.blackjack-backend @@ -0,0 +1 @@ +ALLOW_ORIGINS='["https://blackjack.sahinakkaya.dev"]' # use '["host1", "host2"]' to separate multiple origins diff --git a/infra/docker/.env.blackjack-frontend b/infra/docker/.env.blackjack-frontend new file mode 100644 index 0000000..d8bcd9b --- /dev/null +++ b/infra/docker/.env.blackjack-frontend @@ -0,0 +1 @@ +REACT_APP_SOCKET_URL=https://blackjack-backend.sahinakkaya.dev diff --git a/infra/docker/docker-compose.yml b/infra/docker/docker-compose.yml new file mode 100644 index 0000000..6432553 --- /dev/null +++ b/infra/docker/docker-compose.yml @@ -0,0 +1,15 @@ +services: + blackjack-frontend: + image: ghcr.io/sahinakkaya/blackjack-frontend:main + env_file: + - .env.blackjack-frontend + ports: + - "8432:8000" + + + blackjack-backend: + image: ghcr.io/sahinakkaya/blackjack-backend:main + env_file: + - .env.blackjack-backend + ports: + - "8433:3000"