-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
35 lines (34 loc) · 1.32 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
33
34
35
# 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.1'
services:
keg-mssql:
image: mcr.microsoft.com/mssql/server
container_name: kegelements-mssql
ports:
- '${KEG_LIB_MSSQL_IP:-127.0.0.1}:${KEG_LIB_MSSQL_PORT:-14331}:1433'
environment:
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: "Password12!"
keg-pg:
image: postgres:13-alpine
container_name: kegelements-pg
ports:
- '${KEG_LIB_POSTGRES_IP:-127.0.0.1}:${KEG_LIB_POSTGRES_PORT:-54321}:5432'
environment:
# Ok for local dev, potentially UNSAFE in other applications. Don't blindly copy & paste
# without considering implications.
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_MULTIPLE_DATABASES: keg_tests
volumes:
- ./docker/pg-init-scripts:/docker-entrypoint-initdb.d