-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (76 loc) · 1.88 KB
/
docker-compose.yml
File metadata and controls
81 lines (76 loc) · 1.88 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3'
services:
redis:
image: redis:7.0.8-bullseye
container_name: "${REDIS_HOST}"
volumes:
- ./redis-data:/data
networks:
- portablehack-network
environment:
- REDIS_MAXMEMORY=8gb
- REDIS_MAXMEMORY_POLICY=allkeys-lru
env_file: .env
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
command: redis-server --bind 0.0.0.0 --requirepass ${REDIS_PASS}
mem_limit: 8gb
mongodb:
image: mongo:6.0.4
container_name: "${MONGODB_HOST}"
volumes:
- ./mongo-data:/data/db
- ./mongod.conf:/etc/mongodb/mongod.conf:ro
networks:
- portablehack-network
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGODB_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGODB_PASS}
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
command: mongod --config /etc/mongodb/mongod.conf
iptoasn-webservice:
build:
context: .
dockerfile: ./iptoasn-webservice/Dockerfile
image: "iptoasn-webservice:1.0"
entrypoint: /iptoasn-entrypoint.sh
container_name: "${IPTOASN_HOST}"
environment:
- IPTOASN_PORT=${IPTOASN_PORT}
- IPTOASN_DBURL=${IPTOASN_DBURL}
networks:
- portablehack-network
portablehack-webservice:
build:
context: .
dockerfile: ./Dockerfile
image: portablehack-webservice:0.1
container_name: portablehack-webservice
depends_on:
- mongodb
- redis
- iptoasn-webservice
ports:
- ${LISTEN_PORT}:${LISTEN_PORT}
volumes:
- .:/app
networks:
- portablehack-network
env_file: .env
logging:
driver: "json-file"
options:
max-file: "5"
max-size: "10m"
entrypoint: ["python3", "/app/main.py"]
networks:
portablehack-network:
name: portablehack-network
driver: bridge