-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
52 lines (46 loc) · 1000 Bytes
/
docker-compose.yml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.3' # specify docker-compose version
services:
db:
image: postgres
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: blogdb
POSTGRES_USER: user
volumes:
- postgresdata:/var/lib/postgresql
networks:
- backend
ui:
image: hantsy/spring-webmvc-auth0-sample-ui:latest
environment:
- "BACKEND_API_URL=http://api:8080"
ports:
- "80:80"
depends_on:
- api
networks:
- frontend
- backend
api:
image: hantsy/spring-webmvc-auth0-sample-api:latest
environment:
- "SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/blogdb"
- "SPRING_DATASOURCE_USERNAME=user"
- "SPRING_DATASOURCE_PASSWORD=password"
ports:
- "8080:8080"
depends_on:
- db
networks:
- backend
volumes:
postgresdata:
# driver: local-persist
# driver_opts:
# mountpoint: ./data
networks:
frontend:
backend: