-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathdocker-compose.standalone.yml
45 lines (40 loc) · 1.1 KB
/
docker-compose.standalone.yml
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
# Extends and unsets bindings for each instance, meaning they can be run in
# isolation by tests, etc.
#
# Ports configured here are bound to the containers but not on the host machine, meaning multiple groups of these standalone containers can exist on the same host.
#
# Certain containers are excluded from the test env entirely with the "not-tests" profile.
services:
db:
ports:
- ${DATABASE_PORT:-}:5432
environment:
- DATABASE_PORT=5432
- POSTGRES_PASSWORD="passwordfortests"
profiles: ["tests"]
web:
ports:
- ${WEB_PORT:-}:8000
environment:
- AV_SCAN_URL=http://clamav-rest:9000/scan
- POSTGRES_PASSWORD="passwordfortests"
- JUPYTER_PORT=${JUPYTER_PORT:-8001}
profiles: ["tests"]
clamav-rest:
ports:
- 9000
profiles: ["tests"]
jupyter:
environment:
- WEB_EXTERNAL_HOSTNAME=http://localhost:${WEB_PORT}
env_file:
- .env
- .${COMPOSE_PROJECT_NAME}.env
ports:
- ${JUPYTER_PORT:-}:8000
profiles: ["not-tests"]
mailhog:
ports:
- 1025
- 8025
profiles: ["not-tests"]