diff options
| author | Hunternif <hunternif@gmail.com> | 2025-02-15 19:24:50 +0000 |
|---|---|---|
| committer | Hunternif <hunternif@gmail.com> | 2025-02-15 21:20:11 +0000 |
| commit | da05d377d95567e25c1749ae904e0f39ec467ee5 (patch) | |
| tree | e01471f357c883d8fb2f54b2a812bac85ab9d75c /docker-compose.test.yml | |
| parent | 5717ab9cd18ff370edcd66dab721a6cdb7353173 (diff) | |
server: docker-compose file for running server unit tests (by chatGPT)
Diffstat (limited to 'docker-compose.test.yml')
| -rw-r--r-- | docker-compose.test.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docker-compose.test.yml b/docker-compose.test.yml new file mode 100644 index 0000000..0444c69 --- /dev/null +++ b/docker-compose.test.yml @@ -0,0 +1,23 @@ +services: + test-server: + build: + context: ./server + target: testing + environment: + POSTGRES_HOST: test-sql + POSTGRES_USER: your_postgres_user + POSTGRES_PASSWORD: your_postgres_password + depends_on: + - test-sql + volumes: + - "${MOUNT_DATA}:/data" + - "./server/config.yaml:/opt/app/config.yaml" + + test-sql: + image: postgres:11-alpine + restart: unless-stopped + environment: + POSTGRES_USER: your_postgres_user + POSTGRES_PASSWORD: your_postgres_password + volumes: + - "${MOUNT_SQL}:/var/lib/postgresql/data"
\ No newline at end of file |