-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
22 lines (20 loc) · 842 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
22 lines (20 loc) · 842 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: "3.9"
services:
# Our Postgres database
db: # The service will be named db.
image: postgres # The postgres image will be used
restart: always # Always try to restart if this stops running
environment: # Provide environment variables
POSTGRES_USER: deadpool # POSTGRES_USER env var w/ value baloo
POSTGRES_PASSWORD: wolverine
POSTGRES_DB: lenslocked
ports: # Expose ports so that apps not running via docker compose can connect to them.
- 5432:5432 # format here is "port on our machine":"port on container"
# Adminer provides a nice little web UI to connect to databases
adminer:
image: adminer
restart: always
environment:
ADMINER_DESIGN: pepa-linha-dark # dracula # Pick a theme - https://github.com/vrana/adminer/tree/master/designs
ports:
- 4444:8080