-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
58 lines (56 loc) · 1.44 KB
/
docker-compose.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
46
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.8"
services:
db:
image: postgis/postgis:13-3.4
environment:
POSTGRES_USER: city-infrastructure-platform
POSTGRES_PASSWORD: city-infrastructure-platform
POSTGRES_DB: city-infrastructure-platform
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "127.0.0.1:5432:5432"
api:
build:
target: development
context: "."
volumes:
- .:/city-infrastructure-platform
environment:
# Database location is controlled above by postgres config. Thus we override
# any value set in .env
- DATABASE_URL=postgis://city-infrastructure-platform:city-infrastructure-platform@db/city-infrastructure-platform
env_file:
- .env
ports:
- "127.0.0.1:8000:8000"
restart: on-failure
depends_on:
- db
# From https://github.com/benzino77/clamav-rest-api/blob/6ab5d6b283faab9726763e5fee70aabb82fec51e/examples/docker-compose.yml
clamd:
image: clamav/clamav:stable
container_name: clamav
restart: unless-stopped
networks:
- clam-net
clamav-api:
image: benzino77/clamav-rest-api
container_name: clamav-rest
restart: unless-stopped
depends_on:
- clamd
environment:
- NODE_ENV=production
- CLAMD_IP=clamd
- APP_FORM_KEY=FILES
- APP_PORT=3030
- APP_MAX_FILE_SIZE=105906176
ports:
- '3030:3030'
networks:
- clam-net
networks:
clam-net:
volumes:
db_data: