You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
915 B

services:
postgres:
image: postgres:15-alpine
container_name: studyingspace-postgres
environment:
POSTGRES_DB: studyingspace
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 123456
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
backend:
image: hetianci/studyingspace-backend:TEST
container_name: studyingspace-backend
ports:
- "8081:8080"
depends_on:
- postgres
environment:
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/studyingspace
SPRING_DATASOURCE_USERNAME: postgres
SPRING_DATASOURCE_PASSWORD: 123456
restart: unless-stopped
frontend:
image: hetianci/studyingspace-frontend:TEST
container_name: studyingspace-frontend
ports:
- "8000:80"
depends_on:
- backend
restart: unless-stopped
volumes:
postgres-data: