|
|
|
@ -11,26 +11,39 @@ services: |
|
|
|
|
- u_net |
|
|
|
|
volumes: |
|
|
|
|
- ../target/x86_64-unknown-linux-musl/release/u_server:/u_server |
|
|
|
|
- ./.env:/.env |
|
|
|
|
command: /u_server |
|
|
|
|
- ../:/unki/ |
|
|
|
|
working_dir: /unki |
|
|
|
|
command: bash -c "diesel setup && diesel migration run && /u_server" |
|
|
|
|
depends_on: |
|
|
|
|
u_db: |
|
|
|
|
condition: service_started |
|
|
|
|
condition: service_healthy |
|
|
|
|
expose: |
|
|
|
|
- '63714' |
|
|
|
|
environment: |
|
|
|
|
RUST_LOG: warp |
|
|
|
|
env_file: |
|
|
|
|
- .env |
|
|
|
|
healthcheck: |
|
|
|
|
test: /bin/ss -tlpn | grep 63714 |
|
|
|
|
interval: 5s |
|
|
|
|
timeout: 2s |
|
|
|
|
retries: 2 |
|
|
|
|
|
|
|
|
|
u_db: |
|
|
|
|
image: postgres:13.3 |
|
|
|
|
image: unki/u_db |
|
|
|
|
networks: |
|
|
|
|
- u_net |
|
|
|
|
volumes: |
|
|
|
|
- ../data:/var/lib/postgresql/data |
|
|
|
|
#volumes: |
|
|
|
|
# - ../data:/var/lib/postgresql/data |
|
|
|
|
expose: |
|
|
|
|
- '5432' |
|
|
|
|
environment: |
|
|
|
|
- POSTGRES_PASSWORD=${PG_PASSWORD} |
|
|
|
|
healthcheck: |
|
|
|
|
test: /bin/ss -tlpn | grep 5432 |
|
|
|
|
interval: 5s |
|
|
|
|
timeout: 2s |
|
|
|
|
retries: 2 |
|
|
|
|
|
|
|
|
|
u_agent_1: |
|
|
|
|
image: unki/u_agent |
|
|
|
@ -41,7 +54,7 @@ services: |
|
|
|
|
command: /u_agent u_server |
|
|
|
|
depends_on: |
|
|
|
|
u_server: |
|
|
|
|
condition: service_started |
|
|
|
|
condition: service_healthy |
|
|
|
|
|
|
|
|
|
u_agent_2: |
|
|
|
|
image: unki/u_agent |
|
|
|
@ -52,7 +65,7 @@ services: |
|
|
|
|
command: /u_agent u_server |
|
|
|
|
depends_on: |
|
|
|
|
u_server: |
|
|
|
|
condition: service_started |
|
|
|
|
condition: service_healthy |
|
|
|
|
|
|
|
|
|
tests_runner: |
|
|
|
|
image: unki/tests_runner |
|
|
|
@ -60,6 +73,12 @@ services: |
|
|
|
|
- u_net |
|
|
|
|
volumes: |
|
|
|
|
- ../:/unki/ |
|
|
|
|
working_dir: |
|
|
|
|
/unki |
|
|
|
|
depends_on: |
|
|
|
|
u_server: |
|
|
|
|
u_agent_1: |
|
|
|
|
condition: service_started |
|
|
|
|
u_agent_2: |
|
|
|
|
condition: service_started |
|
|
|
|
u_server: |
|
|
|
|
condition: service_healthy |