Use the .env file.

Actually expose ports.
This commit is contained in:
Ivaylo Novakov 2021-01-12 16:56:11 +01:00
parent 4e6b4b36a3
commit dc1c080f8a
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
2 changed files with 8 additions and 4 deletions

View File

@ -170,6 +170,8 @@ services:
container_name: accounts container_name: accounts
restart: unless-stopped restart: unless-stopped
logging: *default-logging logging: *default-logging
env_file:
- .env
environment: environment:
- SKYNET_DB_HOST=mongo - SKYNET_DB_HOST=mongo
- SKYNET_DB_PORT=27017 - SKYNET_DB_PORT=27017
@ -295,13 +297,15 @@ services:
cockroach: cockroach:
image: cockroachdb/cockroach:v20.1.10 image: cockroachdb/cockroach:v20.1.10
container_name: cockroach container_name: cockroach
env_file:
- .env
command: start --advertise-addr=${CR_IP} --join=${CR_CLUSTER_NODES} --certs-dir=/certs --listen-addr=0.0.0.0:26257 --http-addr=0.0.0.0:8080 command: start --advertise-addr=${CR_IP} --join=${CR_CLUSTER_NODES} --certs-dir=/certs --listen-addr=0.0.0.0:26257 --http-addr=0.0.0.0:8080
volumes: volumes:
- ./docker/data/cockroach/sqlite:/cockroach/cockroach-data - ./docker/data/cockroach/sqlite:/cockroach/cockroach-data
- ./docker/cockroach/certs:/certs - ./docker/cockroach/certs:/certs
expose: ports:
- 8080 - "4080:8080"
- 26257 - "26257:26257"
networks: networks:
shared: shared:
ipv4_address: 10.10.10.84 ipv4_address: 10.10.10.84

View File

@ -64,7 +64,7 @@ secrets:
session: session:
cookie: cookie:
domain: secure.siasky.xyz domain: secure.siasky.net
hashers: hashers:
argon2: argon2: