-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (31 loc) · 805 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (31 loc) · 805 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
37
38
version: "2"
services:
frontend:
image: 'react-frontend'
build: frontend/
container_name: react-frontend
ports:
- "3000:3000"
backend:
image: 'nodejs-backend'
build: backend/
container_name: nodejs-backend
# depends_on:
# - db
# environment:
# - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/urlshortener
# - SPRING_DATASOURCE_USERNAME=urlshortener
# - SPRING_DATASOURCE_PASSWORD=admin
# - SPRING_JPA_HIBERNATE_DDL_AUTO=update
ports:
- "8000:8000"
# db:
# image: 'postgres:13.1-alpine'
# container_name: db
# environment:
# - POSTGRES_USER=urlshortener
# - POSTGRES_PASSWORD=admin
# ports:
# - "5432:5432"
# volumes:
# - ~/pgdata:/var/lib/postgresql/data