-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (36 loc) · 854 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (36 loc) · 854 Bytes
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
version: "3.8"
services:
api:
build: .
ports:
- "8000:8000"
env_file:
- .env
depends_on:
- postgres
- redis
- ganache
volumes:
- ./backend/app/services/contractsManager/contract_build:/app/services/contractsManager/contract_build
postgres:
image: postgres:16
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- pgdata:/var/lib/postgresql/data
- ./docker/db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
ports:
- "5432:5432"
redis:
image: redis:7-alpine
ports:
- "6379:6379"
ganache:
image: trufflesuite/ganache:latest
ports:
- "8545:8545"
command: ["--host", "0.0.0.0", "--wallet.deterministic", "--chain.chainId", "1337"]
volumes:
pgdata: