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.
104 lines
2.5 KiB
104 lines
2.5 KiB
2 years ago
|
version: "3.4"
|
||
|
|
||
|
x-global:
|
||
|
user: &user
|
||
|
"${DOCKER_UID:-1000}:${DOCKER_GID:-1000}"
|
||
3 years ago
|
|
||
|
networks:
|
||
|
u_net:
|
||
|
|
||
|
services:
|
||
|
|
||
|
u_server:
|
||
2 years ago
|
user: *user
|
||
2 years ago
|
image: localhost/unki/u_server
|
||
3 years ago
|
networks:
|
||
|
- u_net
|
||
|
volumes:
|
||
2 years ago
|
- ../target/x86_64-unknown-linux-musl/${PROFILE:-debug}/u_server:/unki/u_server
|
||
2 years ago
|
- ../logs:/unki/logs:rw
|
||
3 years ago
|
working_dir: /unki
|
||
3 years ago
|
command: /unki/u_server
|
||
3 years ago
|
depends_on:
|
||
|
u_db:
|
||
|
condition: service_healthy
|
||
3 years ago
|
ports:
|
||
|
- 63714:63714
|
||
3 years ago
|
env_file:
|
||
|
- ../.env
|
||
3 years ago
|
- ../.env.private
|
||
|
environment:
|
||
2 years ago
|
RUST_LOG: warp=info,u_server_lib=debug
|
||
3 years ago
|
healthcheck:
|
||
1 year ago
|
test: ss -tlpn | grep 63714
|
||
|
interval: 5s
|
||
|
timeout: 2s
|
||
|
retries: 2
|
||
3 years ago
|
|
||
|
u_db:
|
||
2 years ago
|
image: localhost/unki/u_db
|
||
3 years ago
|
networks:
|
||
|
- u_net
|
||
2 years ago
|
ports:
|
||
|
- 54321:5432
|
||
3 years ago
|
env_file:
|
||
|
- ../.env
|
||
3 years ago
|
- ../.env.private
|
||
3 years ago
|
volumes:
|
||
2 years ago
|
- ../target/x86_64-unknown-linux-musl/${PROFILE:-debug}/migrator:/migrator
|
||
|
- type: bind
|
||
|
source: ../scripts/u_db_entrypoint.sh
|
||
|
target: /u_db_entrypoint.sh
|
||
|
command: /u_db_entrypoint.sh
|
||
3 years ago
|
healthcheck:
|
||
1 year ago
|
# test if db's port is open and db is created
|
||
|
test: ss -tlpn | grep 5432 && psql -lqt -U $${POSTGRES_USER} | grep -qw $${POSTGRES_DATABASE}
|
||
|
interval: 5s
|
||
|
timeout: 5s
|
||
|
retries: 3
|
||
3 years ago
|
|
||
3 years ago
|
u_agent:
|
||
2 years ago
|
user: *user
|
||
2 years ago
|
image: localhost/unki/u_agent
|
||
3 years ago
|
networks:
|
||
|
- u_net
|
||
|
volumes:
|
||
2 years ago
|
- ../target/x86_64-unknown-linux-musl/${PROFILE:-debug}/u_agent:/unki/u_agent
|
||
|
- ../logs:/unki/logs:rw
|
||
|
working_dir: /unki
|
||
2 years ago
|
command: bash -c "/unki/u_agent u_server; sleep 3600"
|
||
3 years ago
|
env_file:
|
||
|
- ../.env
|
||
|
environment:
|
||
2 years ago
|
RUST_LOG: u_agent=debug,u_lib=debug
|
||
3 years ago
|
depends_on:
|
||
|
u_server:
|
||
|
condition: service_healthy
|
||
|
|
||
|
tests_runner:
|
||
2 years ago
|
user: *user
|
||
2 years ago
|
image: localhost/unki/tests_runner
|
||
3 years ago
|
networks:
|
||
|
- u_net
|
||
|
volumes:
|
||
2 years ago
|
- ${HOME}/.cargo/registry/:/usr/local/cargo/registry/
|
||
2 years ago
|
- ../__Cargo_integration.toml:/tests/Cargo.toml
|
||
1 year ago
|
- ./:/tests/integration-tests/
|
||
2 years ago
|
- ../certs:/tests/certs
|
||
2 years ago
|
- ../target/x86_64-unknown-linux-musl/${PROFILE:-debug}/u_panel:/u_panel
|
||
2 years ago
|
- ../lib/u_lib:/tests/lib/u_lib
|
||
1 year ago
|
- ../logs:/tests/integration-tests/logs:rw
|
||
3 years ago
|
working_dir:
|
||
1 year ago
|
/tests/integration-tests/
|
||
3 years ago
|
depends_on:
|
||
3 years ago
|
u_agent:
|
||
3 years ago
|
condition: service_started
|
||
|
u_server:
|
||
|
condition: service_healthy
|
||
3 years ago
|
env_file:
|
||
|
- ../.env
|
||
|
- ../.env.private
|
||
3 years ago
|
environment:
|
||
|
RUST_BACKTRACE: 1
|
||
1 year ago
|
RUST_LOG: debug,hyper=info,reqwest=info
|
||
3 years ago
|
U_SERVER: u_server
|