File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Customize configuration from docker-compose.yml to run the application with
2
+ # PostgreSQL database.
3
+ #
4
+ # In order to get the effective configuration, run
5
+ # $ docker-compose -f docker-compose.yml -f postgres.yml config
6
+ #
7
+ # @todo #1034 Document how to run with PostgreSQL and docker-compose
8
+ #
9
+ version : ' 3'
10
+
11
+ services :
12
+ web :
13
+ environment :
14
+ - SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/mystamps
15
+ - SPRING_DATASOURCE_USERNAME=mystamps
16
+ - SPRING_DATASOURCE_PASSWORD=secret
17
+ - SPRING_DATASOURCE_DRIVER_CLASS_NAME=org.postgresql.Driver
18
+ networks :
19
+ - internal-network
20
+ depends_on :
21
+ - db
22
+ db :
23
+ image : postgres:11.3
24
+ environment :
25
+ - POSTGRES_USER=mystamps
26
+ - POSTGRES_PASSWORD=secret
27
+ - POSTGRES_DATABASE=mystamps
28
+ networks :
29
+ - internal-network
30
+
31
+ networks :
32
+ internal-network :
You can’t perform that action at this time.
0 commit comments