-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
39 lines (39 loc) · 1.02 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
version: '3'
services:
postgres:
container_name: 'generic_erc721_smart_contract_postgres'
image: 'postgres:latest'
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT_INSIDE_CONTAINER}"
command:
- "-p $POSTGRES_PORT_INSIDE_CONTAINER"
environment:
- POSTGRES_DB=$POSTGRES_DB
- POSTGRES_USER=$POSTGRES_USER
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
volumes:
- postgres:/var/lib/postgresql/data
profiles:
- deploy-local-chain
- deploy
server:
container_name: 'generic_erc721_smart_contract_ganache'
image: 'trufflesuite/ganache-cli:latest'
ports:
- "${BLOCKCHAIN_PORT}:${BLOCKCHAIN_INSIDE_CONTAINER_PORT}"
command:
- "--chainId"
- "$BLOCKCHAIN_CHAIN_ID"
- "--networkId"
- "$BLOCKCHAIN_NETWORK_ID"
- "--port"
- "$BLOCKCHAIN_INSIDE_CONTAINER_PORT"
- "--mnemonic"
- "'$BLOCKCHAIN_PROVIDER_MNEMONIC'"
- "--debug"
profiles:
- deploy-local-chain
- local-chain
volumes:
postgres:
driver: local