You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
1.9 KiB
92 lines
1.9 KiB
version: "2.1" |
|
|
|
networks: |
|
u_net: |
|
|
|
services: |
|
|
|
u_server: |
|
image: unki/u_server |
|
networks: |
|
- u_net |
|
volumes: |
|
- ../release/u_server:/unki/u_server |
|
- ../certs:/unki/certs |
|
- ../logs:/unki/logs |
|
working_dir: /unki |
|
command: /unki/u_server |
|
depends_on: |
|
u_db: |
|
condition: service_healthy |
|
ports: |
|
- 63714:63714 |
|
env_file: |
|
- ../.env |
|
- ../.env.private |
|
environment: |
|
RUST_LOG: trace |
|
healthcheck: |
|
test: ss -tlpn | grep 63714 |
|
interval: 5s |
|
timeout: 2s |
|
retries: 2 |
|
|
|
u_db: |
|
image: unki/u_db |
|
networks: |
|
- u_net |
|
expose: |
|
- '5432' |
|
env_file: |
|
- ../.env |
|
- ../.env.private |
|
working_dir: /unki |
|
volumes: |
|
- ../migrations:/unki/migrations |
|
command: /unki/u_db_entrypoint.sh svc |
|
healthcheck: |
|
# test if db's port is open and db is created |
|
test: ss -tlpn | grep 5432 && psql -lqt -U $${DB_USER} | grep -qw $${DB_NAME} |
|
interval: 5s |
|
timeout: 5s |
|
retries: 3 |
|
|
|
u_agent: |
|
image: unki/u_agent |
|
networks: |
|
- u_net |
|
volumes: |
|
- ../release/u_agent:/u_agent |
|
command: /u_agent u_server |
|
env_file: |
|
- ../.env |
|
environment: |
|
RUST_LOG: u_agent=debug |
|
depends_on: |
|
u_server: |
|
condition: service_healthy |
|
|
|
tests_runner: |
|
image: unki/tests_runner |
|
networks: |
|
- u_net |
|
volumes: |
|
- ~/.cargo/registry:/root/.cargo/registry |
|
- ./:/tests/ |
|
- ../certs:/certs |
|
- ../release/u_panel:/u_panel |
|
- ../lib/u_lib:/lib/u_lib |
|
- ../lib/u_api_proc_macro:/lib/u_api_proc_macro |
|
working_dir: |
|
/tests/ |
|
depends_on: |
|
u_agent: |
|
condition: service_started |
|
u_server: |
|
condition: service_healthy |
|
env_file: |
|
- ../.env |
|
- ../.env.private |
|
environment: |
|
RUST_BACKTRACE: 1 |
|
U_SERVER: u_server |