-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
32 lines (31 loc) · 1.15 KB
/
docker-compose.yaml
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
# Docker Notes
# ============
# - `docker-compose up`: bring up containers
# - `docker-compose up -d`: same, but run in background/daemon mode
# - `docker-compose down`: bring down containers started with `-d`
# - `docker ps`: show running containers
# - `docker ps -a`: show all containers
# - `docker-compose exec <container name> /bin/bash`: get shell in app container
# - `docker images`
# - `docker rmi <image name>`
# - `docker stop $(docker ps -aq)`: stop all running containers
# - `docker rm $(docker ps -a -q)`: remove all stopped containers
version: '2'
services:
flog-pg:
image: postgres:12-alpine
container_name: flog-pg
ports:
- '127.0.0.1:54321:5432'
environment:
# Kk for flog dev, potentially UNSAFE in other applications. Don't blindly copy & paste
# without considering implications.
POSTGRES_HOST_AUTH_METHOD: trust
# Could use this instead with a strong password if working outside a dev env
# POSTGRES_PASSWORD: password
flog-smtp:
image: reachfive/fake-smtp-server:latest
container_name: flog_fake_smtp
ports:
- '127.0.0.1:25:1025'
- '127.0.0.1:1080:1080'