-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose-test.yml
More file actions
46 lines (39 loc) · 969 Bytes
/
docker-compose-test.yml
File metadata and controls
46 lines (39 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: "3.9"
x-common_env: &common_env
PYTHONUNBUFFERED: 1
LOGLEVEL: DEBUG
DATABASE_URI: postgres://postgres:postgres@127.0.0.1/postgres
services:
proxy-api-test:
container_name: proxy-api-test
build:
context: .
dockerfile: Dockerfile-test
command: ["./scripts/wait-for-it.sh", "db-test:5432", "--", "python", "manage.py", "runserver", "0:8000"]
environment:
<<: *common_env
BASE_TARGET_URL: https://httpstatuses.com/
depends_on:
- db-test
links:
- db-test:db-test
volumes:
- type: bind
source: ./
target: /opt/proxy/
networks:
- proxy-test-network
db-test:
container_name: db-test
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: db-test
POSTGRES_USER: proxy-test
POSTGRES_PASSWORD: proxy-test12345
networks:
- proxy-test-network
networks:
proxy-test-network:
driver: bridge