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

version: "2.1"
networks:
u_net:
services:
u_server:
image: unki/u_server
networks:
- u_net
volumes:
3 years ago
- ../release/u_server:/unki/u_server
- ../certs:/unki/certs
3 years ago
- ../logs:/unki/logs
working_dir: /unki
3 years ago
command: /unki/u_server
depends_on:
u_db:
condition: service_healthy
3 years ago
ports:
- 63714:63714
env_file:
- ../.env
3 years ago
- ../.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
3 years ago
- ../.env.private
working_dir: /unki
volumes:
- ../migrations:/unki/migrations
3 years ago
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
3 years ago
u_agent:
image: unki/u_agent
networks:
- u_net
volumes:
3 years ago
- ../release/u_agent:/u_agent
command: /u_agent u_server
3 years ago
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:
3 years ago
- ~/.cargo/registry:/root/.cargo/registry
- ./:/tests/
3 years ago
- ../certs:/certs
3 years ago
- ../release/u_panel:/u_panel
3 years ago
- ../lib/u_lib:/lib/u_lib
- ../lib/u_api_proc_macro:/lib/u_api_proc_macro
working_dir:
/tests/
depends_on:
3 years ago
u_agent:
condition: service_started
u_server:
condition: service_healthy
3 years ago
env_file:
- ../.env
- ../.env.private
environment:
RUST_BACKTRACE: 1
U_SERVER: u_server