Last active
November 23, 2018 13:01
-
-
Save IsmiKin/c56b6b43a3c8b6786c02c9b2063bc6db to your computer and use it in GitHub Desktop.
Docker compose postgres + postgres admin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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