-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.development.yml
64 lines (59 loc) · 1.47 KB
/
docker-compose.development.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
59
60
61
62
63
64
### Uses locally built images for each service
version: "3"
services:
api:
build:
context: ./api
dockerfile: Dockerfile.dev
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=${PG_HOST}
# - PG_PORT=${PG_PORT}
# - PG_USER=${PG_USER}
# - PG_PASSWORD=${PG_PASSWORD}
# - PG_DB=${PG_DB}
# - PG_PRODUCTION=${PG_PRODUCTION}
- HONEYCLIENT_STUB=${HONEYCLIENT_STUB}
honeyclient:
build: ./honeyclient
restart: always
ports:
- 8000:8000
# command: ["--cap-add=SYS_ADMIN"]
environment:
- GOOGLE_SAFE_BROWSING_API_KEY=${GOOGLE_SAFE_BROWSING_API_KEY}
frontend:
build: ./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:
# Map to localhost:5555 so no conflicts with local instance of postgres
- 5555:5432
# Container to interact with db
adminer:
image: adminer
restart: always
ports:
- 5000:8080