Skip to content

Commit 3f95bdc

Browse files
committedJun 12, 2019
feat: add docker-compose file to run the application with PostgreSQL.
How ro run: $ cd docker $ docker-compose -f docker-compose.yml -f postgres.yml up -d Addressed to #1034 [skip ci]
1 parent 44d5115 commit 3f95bdc

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
 

‎docker/postgres.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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:

1 commit comments

Comments
 (1)

0pdd commented on Jun 12, 2019

@0pdd

Puzzle 1034-0016977f discovered in docker/postgres.yml and submitted as #1039. Please, remember that the puzzle was not necessarily added in this particular commit. Maybe it was added earlier, but we discovered it only now.

Please sign in to comment.