-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
46 lines (42 loc) · 1.27 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
version: '3.5'
services:
api_mongo:
container_name: thx_api_mongo
image: mongo
env_file: .env.example
restart: always
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: admin
volumes:
- mongo-data:/data/db
- ./scripts/mongo-init.sh:/docker-entrypoint-initdb.d/mongo-init.sh
api_hardhat:
container_name: thx_api_hardhat
image: public.ecr.aws/o5j5y3t5/hardhat-thx-artifacts:4.0.4
domainname: hardhat.thx.local
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
ports:
- 8547:8545
expose:
- 8545
environment:
- VIRTUAL_HOST=hardhat.thx.local
- VIRTUAL_PORT=8545
api_nginx:
image: nginx:1.17.10
container_name: thx_api_nginx
depends_on:
- api_hardhat
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certs/localhost.key:/etc/nginx/certs/nginx.key
- ./certs/localhost.crt:/etc/nginx/certs/nginx.crt
ports:
- 8546:443
volumes:
mongo-data: