forked from cowprotocol/services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (49 loc) · 1.11 KB
/
docker-compose.yaml
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
47
48
49
50
51
52
53
54
55
version: '3.1'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_USER: $USER
POSTGRES_PASSWORD: 123
command: -d postgres
volumes:
- postgres:/var/lib/postgresql/data
ports:
- 5432:5432
adminer:
image: adminer
restart: always
ports:
- 7402:8080
migrations:
build:
context: .
dockerfile: docker/Dockerfile.migration
restart: on-failure
command: migrate
environment:
FLYWAY_URL: jdbc:postgresql://db/?user=$USER&password=
volumes:
- type: bind
source: database/sql/
target: /flyway/sql
hardhat:
build: docker/hardhat
restart: always
command: npx hardhat node
ports:
- 8545:8545
# The driver expects to be tested against a geth node in dev mode
# because it's the only dev environment which supports eth_createAccessList.
dev-geth:
build:
context: .
dockerfile: docker/Dockerfile.dev-geth
restart: on-failure
ports:
- 8547:8547
- 18545-19545:18545-19545
volumes:
postgres: