working docker

This commit is contained in:
2024-04-11 17:23:47 -04:00
parent 41aaacf307
commit c762a65fb1
3 changed files with 10 additions and 17 deletions

View File

@@ -4,8 +4,8 @@ name: auburnoil
services: services:
frontend: frontend:
container_name: goodoil container_name: auburnoil
image: anekdotin/goodoil:latest image: anekdotin/auburnoil:latest
restart: on-failure restart: on-failure
build: build:
context: ../oil_frontend context: ../oil_frontend

View File

@@ -1,25 +1,18 @@
version: '3.8' version: '3.8'
name: oil name: auburnoil
volumes:
myapp:
external: true
services: services:
front: front:
container_name: goodoill-dev
restart: on-failure restart: on-failure
image: node:latest
build: build:
context: ../oil_frontend context: ../oil_frontend
dockerfile: Dockerfile dockerfile: Dockerfile
volumes: volumes:
- ../oil_frontend:/app - ../oil_frontend:/app
ports: ports:
- '5180:5173' - '5169:5169'
command: 'vite dev --host --port 5173' command: 'npm run dev'

View File

@@ -1,15 +1,15 @@
version: '3.8' version: '3.8'
name: goodoil name: auburnoil
services: services:
front: front:
container_name: goodoil container_name: goodoil
image: anekdotin/goodoil:latest image: anekdotin/auburnoil:latest
restart: on-failure restart: on-failure
build: build:
context: ../goodoil context: ../auburnoil
dockerfile: Dockerfile.prod dockerfile: Dockerfile.prod
ports: ports:
- '5180:3000' - '5180:3000'