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.
67 lines
1.2 KiB
67 lines
1.2 KiB
3 years ago
|
version: "2.1"
|
||
|
|
||
|
networks:
|
||
|
u_net:
|
||
|
ipam:
|
||
|
config:
|
||
|
- subnet: 10.16.0.0/24
|
||
|
|
||
|
services:
|
||
|
|
||
|
u_server:
|
||
|
image: unki/u_server
|
||
|
networks:
|
||
|
u_net:
|
||
|
ipv4_address: 10.16.0.200
|
||
|
volumes:
|
||
|
- ../target/x86_64-unknown-linux-musl/release/u_server:/u_server
|
||
|
- ./.env:/.env
|
||
|
command: /u_server
|
||
|
depends_on:
|
||
|
u_db:
|
||
|
condition: service_started
|
||
|
expose:
|
||
|
- '63714'
|
||
|
environment:
|
||
|
RUST_LOG: warp
|
||
|
|
||
|
u_db:
|
||
|
image: postgres:13.3
|
||
|
networks:
|
||
|
- u_net
|
||
|
expose:
|
||
|
- '5432'
|
||
|
environment:
|
||
|
- POSTGRES_PASSWORD=${PG_PASSWORD}
|
||
|
|
||
|
u_agent_1:
|
||
|
image: unki/u_agent
|
||
|
networks:
|
||
|
- u_net
|
||
|
volumes:
|
||
|
- ../target/x86_64-unknown-linux-musl/release/u_agent:/u_agent
|
||
|
command: /u_agent 10.16.0.200
|
||
|
depends_on:
|
||
|
u_server:
|
||
|
condition: service_started
|
||
|
|
||
|
u_agent_2:
|
||
|
image: unki/u_agent
|
||
|
networks:
|
||
|
- u_net
|
||
|
volumes:
|
||
|
- ../target/x86_64-unknown-linux-musl/release/u_agent:/u_agent
|
||
|
command: /u_agent 10.16.0.200
|
||
|
depends_on:
|
||
|
u_server:
|
||
|
condition: service_started
|
||
|
|
||
|
tests_runner:
|
||
|
image: unki/tests_runner
|
||
|
networks:
|
||
|
- u_net
|
||
|
volumes:
|
||
|
- ../:/unki/
|
||
|
depends_on:
|
||
|
u_server:
|
||
|
condition: service_started
|