Skip to content

Instantly share code, notes, and snippets.

@IsmiKin
Last active November 23, 2018 13:01
Show Gist options
  • Save IsmiKin/c56b6b43a3c8b6786c02c9b2063bc6db to your computer and use it in GitHub Desktop.
Save IsmiKin/c56b6b43a3c8b6786c02c9b2063bc6db to your computer and use it in GitHub Desktop.
Docker compose postgres + postgres admin
version: '3.1'
services:
db:
image: postgres
restart: always
volumes:
# uncomment to maintan persistance
#- ./postgresql/:/var/lib/postgresql/data/
- ./sql_scripts:/docker-entrypoint-initdb.d/
environment:
POSTGRES_PASSWORD: password_example
POSTGRES_USER: user_example
POSTGRES_DB: matchers
adminer:
image: adminer
restart: always
ports:
- 8080:8080
CREATE TABLE "sound_recordings" (
"artist" text NOT NULL,
"title" text NOT NULL,
"isrc" text NULL,
"duration" smallint NULL
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment