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
restart: unless-stopped
logging: *default-logging
env_file:
- .env
environment:
- SKYNET_DB_HOST=mongo
- SKYNET_DB_PORT=27017
@ -295,13 +297,15 @@ services:
cockroach:
image: cockroachdb/cockroach:v20.1.10
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
volumes:
- ./docker/data/cockroach/sqlite:/cockroach/cockroach-data
- ./docker/cockroach/certs:/certs
expose:
- 8080
- 26257
ports:
- "4080:8080"
- "26257:26257"
networks:
shared:
ipv4_address: 10.10.10.84

View File

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