diff --git a/docker-compose.build.yml b/docker-compose.build.yml index 2e4a561..3f15433 100755 --- a/docker-compose.build.yml +++ b/docker-compose.build.yml @@ -5,11 +5,18 @@ name: auburnoil services: frontend: container_name: auburnoil - image: anekdotin/auburnoil:latest restart: on-failure build: - context: ../oil_frontend + context: ../auburn-oil_frontend dockerfile: Dockerfile.prod ports: - "5180:3000" + api: + restart: on-failure + build: + context: ../auburn-oil_api + dockerfile: Dockerfile + ports: + - '5181:8000' + command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000' diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 2a21cf2..10dbb91 100755 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -6,17 +6,22 @@ services: front: restart: on-failure build: - context: ../oil_frontend + context: ../auburn-oil_frontend dockerfile: Dockerfile volumes: - - ../oil_frontend:/app + - ../auburn-oil_frontend:/app ports: - '5169:5169' command: 'npm run dev' - - - - - + api_dev: + restart: on-failure + build: + context: ../auburn-oil_api + dockerfile: Dockerfile + volumes: + - ../auburn-oil_api:/app + ports: + - '5170:8000' + command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000' diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 60b1e7d..9dcb4ad 100755 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -3,18 +3,17 @@ version: '3.8' name: auburnoil services: - front: - container_name: goodoil - image: anekdotin/auburnoil:latest + container_name: auburnoil + image: anekdotin/auburn-oil_frontend:latest restart: on-failure - build: - context: ../auburnoil - dockerfile: Dockerfile.prod ports: - '5180:3000' - - - + api: + restart: on-failure + image: anekdotin/auburn-oil_api:latest + ports: + - '5181:8000' + command: 'uvicorn app.main:app --reload --host 0.0.0.0 --port 8000'