mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
31 lines
704 B
YAML
31 lines
704 B
YAML
version: '2.4'
|
|
services:
|
|
postgres:
|
|
image: postgres:12.0
|
|
container_name: postgres
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_PASSWORD=pass
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_DB=db
|
|
- PGDATA=/postgresql/data
|
|
volumes:
|
|
- db:/postgresql/data
|
|
network_mode: host
|
|
|
|
go:
|
|
image: golang:1.18
|
|
container_name: golang
|
|
restart: always
|
|
volumes:
|
|
- ~/agora-scan/:/usr/src/app
|
|
working_dir: /usr/src/app
|
|
network_mode: host
|
|
depends_on:
|
|
- postgres
|
|
command: /bin/sh
|
|
stdin_open: true
|
|
tty: true
|
|
|
|
volumes:
|
|
db:
|