-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 1005 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (35 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
version: "3.1"
services:
cinema-postgres:
container_name: cinema-postgres
image: postgres:alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=cinema
ports:
- "5000:5432"
cinema-backend:
container_name: cinema-backend
image: cinema-backend
depends_on:
- cinema-postgres
environment:
- SPRING_DATASOURCE_URL=jdbc:postgresql://cinema-postgres:5432/cinema
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
build:
context: cinema-backend
dockerfile: Dockerfile
ports:
- "8080:8080"
cinema-frontend:
container_name: cinema-frontend
image: cinema-frontend
depends_on:
- cinema-backend
build:
context: cinema-frontend
dockerfile: Dockerfile
ports:
- "4200:80"