-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (50 loc) · 1.19 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
### Uses hosted docker images for all containers. Nothing is locally built
version: "3"
services:
api:
image: csci4950tgt/api
restart: always
ports:
- 8080:8080
# Need to wait for postgres to start
command: ["./wait-for-it.sh", "db:5432", "--", "./api"]
depends_on:
- db
links:
- db
environment:
- PG_HOST=db
- HONEYCLIENT_STUB=${HONEYCLIENT_STUB}
honeyclient:
image: csci4950tgt/honeyclient
restart: always
ports:
- 8000:8000
environment:
- GOOGLE_SAFE_BROWSING_API_KEY=${GOOGLE_SAFE_BROWSING_API_KEY}
frontend:
image: csci4950tgt/frontend
restart: always
ports:
- 3000:8080
# environment:
# - API_STUB=${API_STUB}
db:
image: postgres
restart: always
# Set volume so database not lost after shutting down container
volumes:
- ./postgres-data:/var/lib/postgresql/data
# Setup username, password, and database name
# environment:
# - PG_USER=${PG_USER}
# - PG_PASSWORD=${PG_PASSWORD}
# - PG_DB=${PG_DB}
ports:
- 5555:5432
# Container to interact with db
adminer:
image: adminer
restart: always
ports:
- 5000:8080