techblog

duackrails-postgres

Mar 20th, 2022 (edited)
2,667
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: "3"
  2.  
  3. services:
  4.   duckrails:
  5.     image: iridakos/duckrails
  6.     ports:
  7.      - 8080:80
  8.     environment:
  9.       DATABASE_ADAPTER: postgresql
  10.       DATABASE_PORT: 5432
  11.       DATABASE_NAME: duckrails
  12.       DATABASE_HOSTNAME: postgres
  13.       DATABASE_PASSWORD: p4ssw0rd
  14.       DATABASE_USERNAME: postgres
  15.       SECRET_KEY_BASE: "61867f2ea52bfcd0956063c8947abd745968b9830387aba3034c3bfd2c63d2e22519d0b14df362f85bacd3d36029139a2e5ccb0a08bd2bd88f7ef353556dd7fa"
  16.     restart: on-failure
  17.     depends_on:
  18.      - postgres
  19.   postgres:
  20.     image: postgres:10
  21.     environment:
  22.       POSTGRES_DB: duckrails
  23.       POSTGRES_PASSWORD: p4ssw0rd
  24.       POSTGRES_USERNAME: postgres
RAW Paste Data Copied