-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (33 loc) · 950 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '3.8'
# This is intended for development purposes, please use 'docker-compose-production.yml' for a standard deployment
# The following environment variables need to be set appropriately (in a .env file for example):
# $NOTES_USER
# $NOTES_PASSWORD
# $POSTGRES_USER
# $POSTGRES_PASSWORD
# $POSTGRES_DB
# The backend uses the environment variable "NOTES_DB_HOST" when built standalone, it is set here
services:
db:
build:
context: ./postgres
image: notes/postgres
environment:
- NOTES_USER=$NOTES_USER
- NOTES_PASSWORD=$NOTES_PASSWORD
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
- POSTGRES_DB=$POSTGRES_DB
restart: unless-stopped
# Port exposed for development
ports:
- "5432:5432"
volumes:
- notes-db:/var/lib/postgresql/data
adminer:
image: adminer
restart: always
ports:
- "9000:8080"
volumes:
notes-db: