Commit a648291e authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update docker-compose

parent d7f4965b
version: '3.1'
services:
ipfs:
image: ipfs/kubo:v0.34.1
container_name: ipfs_host
mem_limit: 4g
cpus: '4.0'
environment:
- GOMEMLIMIT=3800MiB
ports:
- "4001:4001"
- "4001:4001/udp"
- "127.0.0.1:18080:8080"
- "127.0.0.1:15001:5001"
\ No newline at end of file
version: "3"
services:
nftdb:
container_name: "mysql-nft"
image: mysql:8
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: XN2UARuys3zy4Oux
MYSQL_DATABASE: nft
volumes:
- ./nftscan/mysql:/var/lib/mysql
ports:
- "127.0.0.1:53306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-pXN2UARuys3zy4Oux"]
interval: 10s
timeout: 5s
retries: 5
sync:
image: token-collection:${TAG:-latest}
container_name: token-collection
environment:
- SYNC=${SYNC:-0}
- MIGRATE=${MIGRATE:-false}
volumes:
- ./data/nftscan/synclogs:/app
- ./nftscan/config.toml:/config.toml
command:
- "/bin/sh"
- "-c"
- "/usr/bin/sync -c /config.toml"
restart:
unless-stopped
depends_on:
nftdb:
condition: service_healthy
api:
image: token-collection:${TAG:-latest}
container_name: token-collection-api
environment:
- MIGRATE=${MIGRATE:-false}
volumes:
- ./data/nftscan/apilogs:/app
- ./nftscan/config.toml:/config.toml
command:
- "/bin/sh"
- "-c"
- "/usr/bin/api -c /config.toml"
restart:
unless-stopped
depends_on:
nftdb:
condition: service_healthy
\ No newline at end of file
......@@ -6,7 +6,7 @@ networks:
services:
expmysql:
image: "mysql:8.0"
ports :
ports:
- "3306:3306"
env_file:
- path: ./db.env
......@@ -64,7 +64,6 @@ services:
- expredis
- expmysql
- expblockscan
caddy:
image: caddy:latest
restart: unless-stopped
......@@ -84,4 +83,66 @@ services:
- ./caddy/root:/srv
- ./caddy/logs:/var/log/caddy
- ./web:/web
ipfs:
image: ipfs/kubo:v0.34.1
container_name: ipfs_host
mem_limit: 4g
cpus: '4.0'
environment:
- GOMEMLIMIT=3800MiB
ports:
- "4001:4001"
- "4001:4001/udp"
- "127.0.0.1:18080:8080"
- "127.0.0.1:15001:5001"
nftdb:
container_name: "mysql-nft"
image: mysql:8
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: XN2UARuys3zy4Oux
MYSQL_DATABASE: nft
volumes:
- ./data/nftscan/mysql:/var/lib/mysql
ports:
- "127.0.0.1:53306:3306"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-pXN2UARuys3zy4Oux"]
interval: 10s
timeout: 5s
retries: 5
sync:
image: token-collection:${TAG:-latest}
container_name: token-collection
environment:
- SYNC=${SYNC:-0}
- MIGRATE=${MIGRATE:-false}
volumes:
- ./data/nftscan/synclogs:/app
- ./nftscan/config.toml:/config.toml
command:
- "/bin/sh"
- "-c"
- "/usr/bin/sync -c /config.toml"
restart: unless-stopped
depends_on:
nftdb:
condition: service_healthy
api:
image: token-collection:${TAG:-latest}
container_name: token-collection-api
environment:
- MIGRATE=${MIGRATE:-false}
ports:
- "10256:10256"
volumes:
- ./data/nftscan/apilogs:/app
- ./nftscan/config.toml:/config.toml
command:
- "/bin/sh"
- "-c"
- "/usr/bin/api -c /config.toml"
restart: unless-stopped
depends_on:
nftdb:
condition: service_healthy
\ No newline at end of file
......@@ -25,7 +25,7 @@ recaptchaSecret = "6Ld91-YkAAAAAPCe3ErpenCAkhlR_Pqzjc1aR_gE"
#=====================
# nft 模块地址,最后不用带"/"
nftUrl = http://15.206.56.79:30256
nftUrl = http://172.17.0.1:10256
#=====================
#====================================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment