Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
updating lightsail stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kwinkunks committed Sep 27, 2022
1 parent 70b72e6 commit d554252
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
1 change: 0 additions & 1 deletion .ebignore

This file was deleted.

4 changes: 0 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""
Simple application to provide freq from images of seismic.
Freq code by endolith https://gist.github.com/endolith/255291
Expand All @@ -8,15 +7,12 @@
import base64

from flask import Flask
from flask import make_response
from flask import request, jsonify, render_template

import urllib
import requests
import numpy as np
from PIL import Image

from bruges import get_bruges
import geophysics
from segy import write_segy
import utils
Expand Down
20 changes: 5 additions & 15 deletions docker-compose.prod.yml → docker-compose.local.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
# Use this for local server, for example:
# docker-compose -f docker-compose.local.yml up
version: "3"

services:
server:
image: abiosoft/caddy
volumes:
- ./Caddyfile:/etc/Caddyfile
- ~/.caddy:/root/.caddy
ports:
- "80:80"
- "443:443"
networks:
- defaultnetwork
user: $UID:$GID
depends_on:
- web

web:
build:
context: .
Expand All @@ -24,10 +12,12 @@ services:
- .env
volumes:
- .:/app
ports:
- "8080:80"
networks:
- defaultnetwork
user: $UID:$GID

networks:
defaultnetwork:
driver: bridge
driver: bridge
16 changes: 14 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
version: "3"

services:
server:
image: abiosoft/caddy
volumes:
- ./Caddyfile:/etc/Caddyfile
- ~/.caddy:/root/.caddy
ports:
- "80:80"
- "443:443"
networks:
- defaultnetwork
user: $UID:$GID
depends_on:
- web

web:
build:
context: .
Expand All @@ -10,8 +24,6 @@ services:
- .env
volumes:
- .:/app
ports:
- "8080:80"
networks:
- defaultnetwork
user: $UID:$GID
Expand Down

0 comments on commit d554252

Please sign in to comment.