feature: Adds depends-on property.
This commit is contained in:
parent
ef43007f8e
commit
a99cf55aa1
1 changed files with 8 additions and 4 deletions
|
@ -1,25 +1,29 @@
|
||||||
services:
|
services:
|
||||||
nextnet-api:
|
api:
|
||||||
image: ghcr.io/greysoh/nextnet:latest
|
image: ghcr.io/greysoh/nextnet:latest
|
||||||
container_name: nextnet-api
|
container_name: nextnet-api
|
||||||
restart: always
|
restart: always
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
|
||||||
# NOTE: For this to work correctly, the nextnet-api must be version > 0.1.1
|
# NOTE: For this to work correctly, the nextnet-api must be version > 0.1.1
|
||||||
# or have a version with backported username support, incl. logins
|
# or have a version with backported username support, incl. logins
|
||||||
nextnet-lom:
|
lom:
|
||||||
image: ghcr.io/greysoh/nextnet-lom:latest
|
image: ghcr.io/greysoh/nextnet-lom:latest
|
||||||
container_name: nextnet-lom
|
container_name: nextnet-lom
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 2222:2222
|
- 2222:2222
|
||||||
|
depends_on:
|
||||||
|
- api
|
||||||
volumes:
|
volumes:
|
||||||
- ssh_key_data:/app/keys
|
- ssh_key_data:/app/keys
|
||||||
|
|
||||||
postgres:
|
db:
|
||||||
image: postgres:15.4
|
image: postgres:15.4
|
||||||
container_name: nextnet-postgres
|
container_name: nextnet-postgres
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -32,4 +36,4 @@ services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
postgres_data:
|
postgres_data:
|
||||||
ssh_key_data:
|
ssh_key_data:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue