37 lines
No EOL
822 B
YAML
37 lines
No EOL
822 B
YAML
services:
|
|
frontend:
|
|
image: node:20-alpine
|
|
working_dir: /app
|
|
volumes:
|
|
- ./frontend:/app
|
|
command: sh -c "npm install && npm run dev -- -p 3000"
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- NEXT_PUBLIC_API_URL=http://localhost:8080
|
|
- API_URL=http://localhost:8080
|
|
restart: always
|
|
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: gohorsejobs-postgres
|
|
environment:
|
|
POSTGRES_USER: postgres
|
|
POSTGRES_PASSWORD: postgres
|
|
POSTGRES_DB: gohorsejobs
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
restart: always
|
|
|
|
rabbitmq:
|
|
image: rabbitmq:3-management-alpine
|
|
container_name: gohorsejobs-rabbitmq
|
|
ports:
|
|
- "5672:5672"
|
|
- "15672:15672"
|
|
restart: always
|
|
|
|
volumes:
|
|
postgres_data: |