Skip to content

Commit

Permalink
chore: make docker compose config SELinux aware (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanez authored May 24, 2021
1 parent e55f296 commit b260ba2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions docker-compose-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ services:
build: docker/oasis-node
# restart: always
volumes:
- oasis-node-data:/node/data
- oasis-node-data:/node/data:z
# Oasis-node config file
- ./docker/oasis-node/config-testnet.yml:/node/etc/config.yml
- ./docker/oasis-node/config-testnet.yml:/node/etc/config.yml:z
# Genesis file
- ./docker/genesis-testnet.json:/node/etc/genesis.json
- ./docker/genesis-testnet.json:/node/etc/genesis.json:z
# Expose sock
oasis-explorer:
build: docker/oasis-explorer
restart: always
ports:
- "127.0.0.1:9001:9001"
volumes:
- oasis-node-data:/node/data
- ./docker/genesis-testnet.json:/genesis.json
- ./docker/oasis-explorer/config-testnet.json:/.secrets/config.json
- oasis-node-data:/node/data:z
- ./docker/genesis-testnet.json:/genesis.json:z
- ./docker/oasis-explorer/config-testnet.json:/.secrets/config.json:z
envoy:
image: envoyproxy/envoy:v1.18.3
ports:
Expand All @@ -29,13 +29,13 @@ services:
ENVOY_UID: 0
ENVOY_GID: 0
volumes:
- oasis-node-data:/node/data
- ./docker/envoy.yaml:/etc/envoy/envoy.yaml
- oasis-node-data:/node/data:z
- ./docker/envoy.yaml:/etc/envoy/envoy.yaml:z
explorer-postgres:
image: postgres
restart: always
volumes:
- explorer-postgres-data:/var/lib/postgresql/data
- explorer-postgres-data:/var/lib/postgresql/data:z
ports:
- "127.0.0.1:5432:5432"
environment:
Expand All @@ -46,7 +46,7 @@ services:
image: yandex/clickhouse-server
restart: always
volumes:
- explorer-clickhouse-data:/var/lib/clickhouse
- explorer-clickhouse-data:/var/lib/clickhouse:z
ports:
- "127.0.0.1:8123:8123"
- "127.0.0.1:9000:9000"
Expand Down
22 changes: 11 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ services:
# restart: always
volumes:
# Our local validator node
- ./docker/nodes/local-validator:/init_node
- ./docker/nodes/local-validator:/init_node:z
# Our local entity
- ./docker/entities/local-validator:/entity
- ./docker/entities/local-validator:/entity:z
# Will host blockchain data
- oasis-node-data:/node/data
- oasis-node-data:/node/data:z
# Oasis-node config file
- ./docker/oasis-node/config-local.yml:/node/etc/config.yml
- ./docker/oasis-node/config-local.yml:/node/etc/config.yml:z
# Genesis file
- ./docker/genesis-local.json:/node/etc/genesis.json
- ./docker/genesis-local.json:/node/etc/genesis.json:z
# Expose sock
oasis-explorer:
build: docker/oasis-explorer
restart: always
ports:
- "9001:9001"
volumes:
- oasis-node-data:/node/data
- ./docker/genesis-local.json:/genesis.json
- ./docker/oasis-explorer/config-local.json:/.secrets/config.json
- oasis-node-data:/node/data:z
- ./docker/genesis-local.json:/genesis.json:z
- ./docker/oasis-explorer/config-local.json:/.secrets/config.json:z
envoy:
image: envoyproxy/envoy:v1.18.3
ports:
Expand All @@ -34,8 +34,8 @@ services:
ENVOY_UID: 0
ENVOY_GID: 0
volumes:
- oasis-node-data:/node/data
- ./docker/envoy.yaml:/etc/envoy/envoy.yaml
- oasis-node-data:/node/data:z
- ./docker/envoy.yaml:/etc/envoy/envoy.yaml:z
explorer-postgres:
image: postgres
restart: always
Expand All @@ -51,7 +51,7 @@ services:
image: yandex/clickhouse-server
restart: always
volumes:
- explorer-clickhouse-data:/var/lib/clickhouse
- explorer-clickhouse-data:/var/lib/clickhouse:z
ports:
- "8123:8123"
- "9000:9000"
Expand Down

0 comments on commit b260ba2

Please sign in to comment.