Skip to content

Commit

Permalink
Merge pull request #31 from slyfer/feature/docker-compose
Browse files Browse the repository at this point in the history
add docker compose file for production profile
  • Loading branch information
francbartoli authored Apr 22, 2020
2 parents a27be1a + 1b6a26f commit bbdd442
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: "3.6"
services:

noiapp-backend:
image: noiapp/noiapp-backend:develop
restart: unless-stopped
environment:
- _JAVA_OPTIONS=-Xmx1024m -Xms1024m -Duser.timezone=UTC
- SPRING_PROFILES_ACTIVE=prod
- DATASOURCE_URL=jdbc:postgresql://noiapp-database:5432/noiapp
- DATASOURCE_USERNAME=noiapp
- DATASOURCE_PASSWORD=noiapp
ports:
- 80:8080
depends_on:
- noiapp-database

noiapp-database:
image: postgres:12
restart: unless-stopped
environment:
- POSTGRES_DB=noiapp
- POSTGRES_USER=noiapp
- POSTGRES_PASSWORD=noiapp

adminer:
image: adminer
restart: unless-stopped
ports:
- 8181:8080

0 comments on commit bbdd442

Please sign in to comment.