Skip to content

Commit

Permalink
feat: add docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
KonsumGandalf committed Apr 27, 2024
1 parent e3866d1 commit 4ad6203
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
version: '3.8'

name: maintenance-automation-compose

services:
postgres:
image: postgres:alpine
volumes:
- postgres:/var/lib/postgresql/data
restart: unless-stopped
ports:
- '5432:5432'
environment:
POSTGRES_USER: amos
POSTGRES_PASSWORD: amos
POSTGRES_DB: amos

networks:
- db_network
- backend_network

cloudbeaver:
image: dbeaver/cloudbeaver
restart: unless-stopped
ports:
- '8978:8978'
networks:
- db_network

backend:
depends_on:
- postgres
# image: ghcr.io/amosproj/amos2024ss01-xcelerator-demo-app-backend
build:
context: .
target: production
dockerfile: apps/backend/Dockerfile
restart: unless-stopped
ports:
- '3000:3000'
networks:
- backend_network

frontend:
depends_on:
- backend
# image: ghcr.io/amosproj/amos2024ss01-xcelerator-demo-app-frontend
build:
context: .
target: production
dockerfile: apps/frontend/Dockerfile
restart: unless-stopped
ports:
- '4200:80'
networks:
- backend_network

networks:
backend_network:
driver: bridge
db_network:
driver: bridge

volumes:
postgres:

0 comments on commit 4ad6203

Please sign in to comment.