Skip to content

Commit 4d7a079

Browse files
committed
chore: add docker-compose.local.yaml for local development
1 parent f001ce4 commit 4d7a079

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

docker/docker-compose.local.yaml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Customize configuration from docker-compose.yaml to run services locally.
2+
#
3+
# In order to get the effective configuration, run
4+
# docker compose -f docker-compose.yaml -f docker-compose.local.yaml config
5+
#
6+
# Usage examples:
7+
#
8+
# docker compose -f docker-compose.yaml -f docker-compose.local.yaml up -d
9+
# docker compose exec mysql mysql -u test -ptest test -e 'SELECT * FROM categories'
10+
# docker compose exec postgres psql -U test -c 'SELECT * FROM categories'
11+
#
12+
version: '3'
13+
14+
services:
15+
mysql:
16+
ports:
17+
- '3306:3306'
18+
19+
postgres:
20+
ports:
21+
- '5432:5432'

0 commit comments

Comments
 (0)