You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
643 B
38 lines
643 B
version: "3.3"
|
|
|
|
volumes:
|
|
dummy:
|
|
|
|
services:
|
|
pipenv: &pipenv
|
|
image: "kennethreitz/pipenv"
|
|
working_dir: "/app"
|
|
volumes:
|
|
- ".:/app"
|
|
- "dummy:/app/.venv"
|
|
|
|
db: &db
|
|
container_name: "sql_test_db"
|
|
image: "mdillon/postgis:11"
|
|
volumes:
|
|
- "./sql:/sql"
|
|
env_file:
|
|
- "env/local/.env"
|
|
ports:
|
|
- "5438:5432"
|
|
|
|
testdb:
|
|
<<: *db
|
|
container_name: "testdb"
|
|
restart: "always"
|
|
env_file:
|
|
- "env/test/.env"
|
|
ports:
|
|
- "5432"
|
|
|
|
|
|
dbtest:
|
|
<<: *pipenv
|
|
command: ["bash", "-c", "pipenv install --dev --deploy --system && pytest -s -vvv"]
|
|
depends_on:
|
|
- testdb
|