This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.pojagi.yml
78 lines (74 loc) · 2.37 KB
/
docker-compose.pojagi.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.8'
services:
postgres:
container_name: postgres
image: postgres:14-alpine
environment:
POSTGRES_USER: imbue
POSTGRES_PASSWORD: imbue
ports:
- 5433:5432
#volumes:
#- /tmp/imbue/postgres:/var/lib/postgresql/data
api:
build: ./api
container_name: api
ports:
- "3000:3000"
environment:
GOOGLE_OAUTH2_CLIENT_ID: $GOOGLE_OAUTH2_CLIENT_ID
GOOGLE_OAUTH2_CLIENT_SECRET: $GOOGLE_OAUTH2_CLIENT_SECRET
WEB_HOST: "https://pojagi.org"
DB_PORT: 5432
DB_HOST: postgres
IMBUE_NETWORK_WEBSOCK_ADDR: wss://testnet.imbue.network
#volumes:
#- "./api/build:/api/build"
#- "./api/node_modules:/api/node_modules"
#- "./api/views:/api/views"
web:
build: ./web
container_name: web
ports:
- "80:80"
- "443:443"
environment:
- HTTP_PORT=80
- HTTPS_PORT=443
- SSL_DHPARAM=/etc/ssl/certs/dhparam.pem
- SSL_CERTS_CONF=conf.d/includes/certs.pojagi.conf
- WEBFLOW_URL=https://imbue-e67fe2-46873a03f61498e3c4ae7180df.webflow.io
# - IMBUE_WS_ADDR=http://3.9.171.186:9944 # we now get this from api info endpoint
- API_LOCAL=http://api:3000
volumes:
- /etc/ssl/certs:/etc/ssl/certs
#- "./web/dist:/usr/share/nginx/html/dist"
## XXX: commenting this out for now, because we have a testnet to work with instead.
# but if you wanted to work with a local network, this is one possibility.
# imbue:
# container_name: imbue
# command: >
# /bin/bash -c "
# cd /var/log/polkadot-launch-imbue;
# polkadot-launch /polkadot-launch/polkadotLaunchConfig.js;
# "
# image: imbue-collator:latest
# build: http://github.com/ImbueNetwork/imbue.git#589ce100c1f8e76e3336920a7ce73653ae96d884
# ports:
# # prometheus
# - "9610:9610"
# # WS and RPC
# - "9900-9999:9900-9999"
# # P2P
# - "30000-31000:30000-31000"
# environment:
# - RELAYCHAIN_EXECUTABLE=/polkadot
# - COLLATOR_EXECUTABLE=/imbue-collator
# - COLLATOR_PARACHAIN_ID=2121
# #- POLKADOT_LAUNCH_BASE_PATH_BASE=/var/log/polkadot-launch-imbue
# volumes:
# # Allows you to see/control the lifespan of the logs polkadot-launch
# # creates.
# - "/tmp/polkadot-launch-imbue:/var/log/polkadot-launch-imbue"
# # Allows you to provide your own launchConfig via `command` above.
# - "./config:/polkadot-launch"