Skip to content

Commit b7686e5

Browse files
committed
separate out compose
1 parent aad51dc commit b7686e5

File tree

3 files changed

+14
-20
lines changed

3 files changed

+14
-20
lines changed

compose.test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
anyvlm_test_db:
3+
image: postgres:17
4+
tmpfs:
5+
- /var/lib/postgresql/data
6+
ports:
7+
- 127.0.0.1:5436:5432
8+
environment:
9+
- POSTGRES_DB=anyvlm_test
10+
- POSTGRES_USER=anyvlm_test
11+
- POSTGRES_PASSWORD=anyvlm-test-pw

compose.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
services:
2-
32
anyvlm_db:
43
image: postgres:17
54
volumes:
@@ -11,19 +10,6 @@ services:
1110
- POSTGRES_USER=anyvlm
1211
- POSTGRES_PASSWORD=anyvlm-pw
1312

14-
anyvlm_test_db:
15-
image: postgres:17
16-
volumes:
17-
- anyvlm_test_vol:/var/lib/postgresql/data
18-
ports:
19-
- 127.0.0.1:5436:5432
20-
environment:
21-
- POSTGRES_DB=anyvlm_test
22-
- POSTGRES_USER=anyvlm_test
23-
- POSTGRES_PASSWORD=anyvlm-test-pw
24-
2513
volumes:
2614
anyvlm_vol:
2715
external: true
28-
anyvlm_test_vol:
29-
external: true

docs/source/configuration/docker_compose.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,20 @@ This page describes how to use the provided ``compose.yaml`` file to start AnyVL
66
Overview
77
--------
88

9-
The compose file defines four main services:
9+
The compose file defines one main service:
1010

1111
* ``anyvlm_db`` - PostgreSQL database for AnyVLM
12-
* ``anyvlm_test_db`` - PostgreSQL database for AnyVLM Tests
1312

14-
It also defines Docker volumes:
13+
It also defines a Docker volume:
1514

1615
* ``anyvlm_vol`` - storage for the AnyVLM PostgreSQL data directory
17-
* ``anyvlm_test_vol`` - storage for the AnyVLM PostgreSQL Test data directory
1816

19-
These volumes are declared as ``external: true``, so it must exist before
17+
This volume is declared as ``external: true``, so it must exist before
2018
you run ``docker compose up``. For example:
2119

2220
.. code-block:: bash
2321
2422
docker volume create anyvlm_vol
25-
docker volume create anyvlm_test_vol
2623
2724
Running the stack
2825
-----------------

0 commit comments

Comments
 (0)