Skip to content
Damien Trouillet edited this page Feb 13, 2020 · 1 revision

Run Ebad with docker-compose (draft)

Create a docker-compose.yml file with content :

version: '3.5'

services:
  ebad-postgres:
    image: "postgres:11-alpine"
    container_name: ebad-postgres
    volumes:
      - ebad-data:/var/lib/postgresql/data
    ports:
      - 5432:5432
    environment:
      - POSTGRES_DB=ebad
      - POSTGRES_USER=ebad
      - POSTGRES_PASSWORD=ebad
  ebad-backend:
    image: "informatique-cdc/ebad"
    container_name: ebad-backend
    ports:
      - 8080:10300
    environment:
      - SPRING_PROFILES_ACTIVE=jwt,heroku
      - JDBC_DATABASE_URL=jdbc:postgresql://ebad-postgres/ebad
      - JDBC_DATABASE_USERNAME=ebad
      - JDBC_DATABASE_PASSWORD=ebad
    links:
      - ebad-postgres
  ebad-frontend:
    image: "informatique-cdc/ebad-front"
    container_name: ebad-frontend
    ports:
      - 80:80
    links:
      - ebad-backend
volumes:
  ebad-data:

Then run docker-compose up -d

Clone this wiki locally