We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f13b90 commit fbfe506Copy full SHA for fbfe506
.dockerignore
@@ -0,0 +1 @@
1
+.git
database.env
@@ -0,0 +1,3 @@
+POSTGRES_USER=unicorn_user
2
+POSTGRES_PASSWORD=magical_password
3
+POSTGRES_DB=rainbow_database
docker-compose.yml
@@ -6,3 +6,11 @@ services:
6
dockerfile: Dockerfile
7
ports:
8
- "1993:1993"
9
+ database:
10
+ image: "postgres" # use latest official postgres version
11
+ env_file:
12
+ - database.env # configure postgres
13
+ volumes:
14
+ - database-data:/var/lib/postgresql/data/ # persist data even if container shuts down
15
+volumes:
16
+ database-data: # named volumes can be managed easier using docker-compose
0 commit comments