-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
61 lines (57 loc) · 1.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: "3"
services:
backend:
build: backend
container_name: backend
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
environment:
DB_HOST: mariadb
DB_PORT: ${DB_PORT}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_NAME: ${DB_NAME}
PORT: ${BACKEND_PORT}
CORS_ORIGIN: ${CORS_ORIGIN}
INDEXER_ENABLED: ${INDEXER_ENABLED}
INDEXER_START_BLOCK: ${INDEXER_START_BLOCK}
INDEXER_END_BLOCK: ${INDEXER_END_BLOCK}
INDEXER_BATCH_SIZE: ${INDEXER_BATCH_SIZE}
INDEXER_JSON_RPC_URL: ${INDEXER_JSON_RPC_URL}
FETCHER_ENABLED: ${FETCHER_ENABLED}
FETCHER_GITHUB_TOKEN: ${FETCHER_GITHUB_TOKEN}
ATTESTER_ENABLED: ${ATTESTER_ENABLED}
ATTESTER_PRIVATE_KEY: ${ATTESTER_PRIVATE_KEY}
ATTESTER_JSON_RPC_URL: ${ATTESTER_JSON_RPC_URL}
networks:
- db-service
depends_on:
- mariadb
mariadb:
image: mariadb:latest
container_name: db
ports:
- "3306:${DB_PORT}"
environment:
MARIADB_ROOT_PASSWORD: ${DB_PASS}
MARIADB_DATABASE: ${DB_NAME}
MARIADB_USER: ${DB_USER}
networks:
- db-service
volumes:
- maria-data:/data/db
adminer:
image: adminer
container_name: adminer
ports:
- "8080:${ADMINER_PORT}"
networks:
- db-service
depends_on:
- mariadb
networks:
db-service:
driver: bridge
volumes:
maria-data:
driver: local