bitque/docker-compose.yml

79 lines
1.7 KiB
YAML
Raw Normal View History

2020-06-04 20:47:10 +02:00
version: '3.2'
2020-05-22 17:35:32 +02:00
services:
db:
image: postgres:latest
2020-06-04 20:47:10 +02:00
environment:
- POSTGRES_USER=postgres
- POSTGRES_HOST_AUTH_METHOD=trust
2020-10-21 23:59:17 +02:00
build-server:
build:
dockerfile: ./Dockerfile.build
context: .
stdin_open: true
tty: true
volumes:
- ./build:/app/build
- type: volume
source: rs-target
2023-03-31 23:25:20 +02:00
target: /app/bitque-server/target
2020-10-21 23:59:17 +02:00
- ./Cargo.toml:/app/Cargo.toml
- ./Cargo.lock:/app/Cargo.lock
2023-03-31 23:25:20 +02:00
- ./bitque-server:/app/bitque-server
- ./bitque-data:/app/bitque-data
- ./bitque-cli:/app/bitque-cli
- ./bitque-client:/app/bitque-client
2020-05-22 17:35:32 +02:00
server:
build:
2023-03-31 23:25:20 +02:00
dockerfile: ./bitque-server/Dockerfile
2020-05-22 17:35:32 +02:00
context: .
2020-06-04 20:47:10 +02:00
depends_on:
- db
environment:
2023-03-31 23:25:20 +02:00
- DATABASE_URL=postgres://postgres@db/bitque
2020-06-04 20:47:10 +02:00
- JIRS_SERVER_PORT=5000
- JIRS_SERVER_BIND=0.0.0.0
- RUST_LOG=debug
- DEBUG=true
- JIRS_CLIENT_PORT=7000
- JIRS_CLIENT_BIND=0.0.0.0
nginx:
image: nginx:latest
depends_on:
- client
- server
ports:
- 80:80
volumes:
- ./.builds/nginx.conf:/etc/nginx/conf.d/default.conf
- type: volume
source: assets
target: /assets
volume:
nocopy: true
client:
build:
2023-03-31 23:25:20 +02:00
dockerfile: ./bitque-client/Dockerfile
2020-06-04 20:47:10 +02:00
context: .
env_file:
- .env
environment:
- JIRS_SERVER_PORT=80
2023-03-31 23:25:20 +02:00
- JIRS_SERVER_BIND=bitque.lvh.me
2020-06-04 20:47:10 +02:00
- JIRS_CLIENT_PORT=80
2023-03-31 23:25:20 +02:00
- JIRS_CLIENT_BIND=bitque.lvh.me
2020-06-04 20:47:10 +02:00
volumes:
- type: volume
source: assets
target: /assets
volume:
nocopy: true
volumes:
assets:
2020-10-21 23:59:17 +02:00
build:
rs-target: