blob: 0444c69af5c08acbbd2dfa4219998be71964fdff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"
|