Closed ralyodio closed 10 months ago
I've tried this but it just does exit 0.
docker-compose.yml
:
version: '3.8'
services:
follow-cache:
image: nixos/nix
build: .
volumes:
- .:/app
working_dir: /app
ports:
- "127.0.0.1:7702:8801"
environment:
- PRIMALSERVER_HOST=0.0.0.0
command: >
nix --extra-experimental-features 'nix-command flakes' develop -c sh -c '$start_primal_caching_service'
networks:
- follows_network
networks:
follows_network:
name: follows_network
Dockerfile
# Use the specified base image
FROM nixos/nix
# Set an environment variable
ENV PRIMALSERVER_HOST=0.0.0.0
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Run the specified command when the container launches
CMD ["nix", "--extra-experimental-features", "nix-command flakes", "develop", "-c", "sh", "-c", "$start_primal_caching_service"]
# Expose the port the server is running on
EXPOSE 8801
DOes anyone know how to fix?
version: '3.8'
services:
follow-cache:
image: nixos/nix
volumes:
- .:/app
- ./var/root:/root
working_dir: /app
ports:
- "127.0.0.1:7702:8801"
environment:
- PRIMALSERVER_HOST=0.0.0.0
command: >
nix --extra-experimental-features 'nix-command flakes' develop -c sh -c '$$start_primal_caching_service'
stdin_open: true
tty: true
networks:
- follows_network
networks:
follows_network:
name: follows_network
then you can do, for interactive use:
docker-compose run follow-cache
or for non-interactive use:
docker-compose up
send me your zap address.
no thanks. you wrote most of docker-compose.yml anyway :)
@ralyodio You forgot to close the bounty https://resolvr.io/b/naddr1qvzqqqr4vgpzq2rr7w2wgna4parhgzx78clr67gwrp43rpn5d3nvyw6wc5n4a4vdqyxhwumn8ghj7mn0wvhxcmmvqy28wumn8ghj7un9d3shjtnyv9kh2uewd9hsq3myda3kketjvdhk6ur0wdjj6ctwvskkgmmrddjhyenfd3jj6etcv9khqmr994nx7u3dwpexjmtpdskkxctrdpjj6un9wphj6e33xumxgenxv3nxyve33440cv ..
closed it. their close broken was broken but its working finally.
I'd like to run this with docker-compose