Skip to content

Commit

Permalink
Staging Test
Browse files Browse the repository at this point in the history
  • Loading branch information
masterbater committed Jun 10, 2022
1 parent 08927af commit d09c338
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Caddyfile → CaddyfileForImageOnly
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
http://localhost:3009 {
:3009 {
handle /* {
root * /var/www/html
try_files {path} /index.html
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ RUN npm run build
# ========= RUN =========
FROM caddy:2.5.1-alpine

COPY Caddyfile /etc/caddy/Caddyfile
COPY CaddyfileForImageOnly /etc/caddy/Caddyfile
COPY --from=builder /app/build /var/www/html
Binary file added awscliv2.zip
Binary file not shown.
44 changes: 44 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Before compose up run this "docker network create caddy"
# aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 155635619005.dkr.ecr.us-east-2.amazonaws.com
version: "3"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine

restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
depends_on:
- smarthealthui
smarthealthui:

build:
context: .
dockerfile: Dockerfile
restart: always
networks:
- caddy
labels:
caddy.tls: "internal"
caddy: testncare.com
caddy.reverse_proxy: "{{upstreams 3009}}"
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: --interval 30
networks:
caddy:
external: true

volumes:
caddy_data: {}
42 changes: 42 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Before compose up run this "docker network create caddy"
# aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 155635619005.dkr.ecr.us-east-2.amazonaws.com
version: "3"
services:
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine

restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
- CADDY_INGRESS_NETWORKS=caddy
networks:
- caddy
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- caddy_data:/data
depends_on:
- smarthealthui
smarthealthui:
image: 155635619005.dkr.ecr.us-east-2.amazonaws.com/githubactionapptest:react_demo_image

restart: always
networks:
- caddy
labels:
caddy.tls: "internal"
caddy: testncare.com
caddy.reverse_proxy: "{{upstreams 3009}}"
watchtower:
image: containrrr/watchtower
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /root/.docker/config.json:/config.json
command: --interval 30
networks:
caddy:
external: true

volumes:
caddy_data: {}

0 comments on commit d09c338

Please sign in to comment.