vince
vince copied to clipboard
When the listening port is set to "8080" in the environment variable, vince crashes and the vince image runs directly
Configuration Files
Dockerfile
FROM ghcr.io/vinceanalytics/vince
CMD ["serve"]
docker-compose.yml
services:
vince:
container_name: vince
build:
context: .
environment:
- VINCE_LISTEN="8080"
- VINCE_ADMIN_NAME="acme"
- VINCE_ADMIN_PASSWORD="1234"
ports:
- "18886:8080"
volumes:
- ./data:/vince-data
restart: unless-stopped
question
- When the environment variable is VINCE_LISTEN="8080", the container crashes
- log
www@VM-0-15-debian:~/vince$ cat docker-compose.yml
services:
vince:
container_name: vince
build:
context: .
environment:
- VINCE_LISTEN="8080"
- VINCE_ADMIN_NAME="acme"
- VINCE_ADMIN_PASSWORD="1234"
ports:
- "18886:8080"
volumes:
- ./data:/vince-data
restart: unless-stopped
www@VM-0-15-debian:~/vince$ docker-compose up --build
Creating network "vince_default" with the default driver
Building vince
Sending build context to Docker daemon 53.43MB
Step 1/2 : FROM ghcr.io/vinceanalytics/vince
---> 05d3f072016e
Step 2/2 : CMD ["serve"]
---> Using cache
---> edd0a096e4ae
Successfully built edd0a096e4ae
Successfully tagged vince_vince:latest
Creating vince ... done
Attaching to vince
vince | 2025/05/13 15:14:44 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/13 15:14:44 INFO unpacking geo database path=vince-data/city.mmdb
vince | 2025/05/13 15:14:44 INFO unpacked geo database size_in_mb=108
vince | 2025/05/13 15:14:44 INFO loading translation data
vince | 2025/05/13 15:14:44 INFO complete loading translation elapsed=585.726µs keys=0
vince | 2025/05/13 15:14:44 INFO starting event processing loop
vince | 2025/05/13 15:14:44 INFO starting server addr="\"8080\""
vince | 2025/05/13 15:14:44 INFO Shutting down
vince | 2025/05/13 15:14:44 INFO exiting event processing loop
vince | 2025/05/13 15:14:45 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/13 15:14:45 INFO loading translation data
vince | 2025/05/13 15:14:45 INFO complete loading translation elapsed=65.353µs keys=0
vince | 2025/05/13 15:14:45 INFO starting server addr="\"8080\""
vince | 2025/05/13 15:14:45 INFO starting event processing loop
vince | 2025/05/13 15:14:45 INFO exiting event processing loop
vince | 2025/05/13 15:14:45 INFO Shutting down
vince exited with code 0
- Allow the container to run directly without adding commands. The Dockerfile file must add "CMD ["serve"]" so that the container can run directly.
VINCE_LISTEN is in host:port format. The following are all valid and should work.
VINCE_LISTEN=":8080"VINCE_LISTEN="localhost:8080"
www@VM-0-15-debian:~/vince$ cat docker-compose.yml
services:
vince:
container_name: vince
build:
context: .
environment:
- VINCE_LISTEN="localhost:8080"
- VINCE_ADMIN_NAME="acme"
- VINCE_ADMIN_PASSWORD="1234"
ports:
- "18886:8080"
volumes:
- ./data:/vince-data
restart: unless-stopped
www@VM-0-15-debian:~/vince$ docker-compose up --build
Building vince
Sending build context to Docker daemon 53.43MB
Step 1/2 : FROM ghcr.io/vinceanalytics/vince
---> 05d3f072016e
Step 2/2 : CMD ["serve"]
---> Using cache
---> edd0a096e4ae
Successfully built edd0a096e4ae
Successfully tagged vince_vince:latest
vince is up-to-date
Attaching to vince
vince | 2025/05/14 23:40:53 [JOB 1] WAL 000084 stopped reading at offset: (vince-data/ops/000084.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:40:53 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:40:53 INFO loading translation data
vince | 2025/05/14 23:40:53 INFO complete loading translation elapsed=538.248µs keys=0
vince | 2025/05/14 23:40:53 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:40:53 INFO starting event processing loop
vince | 2025/05/14 23:40:53 INFO exiting event processing loop
vince | 2025/05/14 23:40:53 INFO Shutting down
vince | 2025/05/14 23:40:54 [JOB 1] WAL 000089 stopped reading at offset: (vince-data/ops/000089.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:40:54 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:40:54 INFO loading translation data
vince | 2025/05/14 23:40:54 INFO complete loading translation elapsed=49.478µs keys=0
vince | 2025/05/14 23:40:54 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:40:54 INFO starting event processing loop
vince | 2025/05/14 23:40:54 INFO exiting event processing loop
vince | 2025/05/14 23:40:54 INFO Shutting down
vince | 2025/05/14 23:40:55 [JOB 1] WAL 000095 stopped reading at offset: (vince-data/ops/000095.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:40:55 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:40:55 INFO loading translation data
vince | 2025/05/14 23:40:55 INFO complete loading translation elapsed=287.246µs keys=0
vince | 2025/05/14 23:40:55 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:40:55 INFO Shutting down
vince | 2025/05/14 23:40:56 [JOB 1] WAL 000100 stopped reading at offset: (vince-data/ops/000100.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:40:56 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:40:56 INFO loading translation data
vince | 2025/05/14 23:40:56 INFO complete loading translation elapsed=65.178µs keys=0
vince | 2025/05/14 23:40:56 INFO starting event processing loop
vince | 2025/05/14 23:40:56 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:40:56 INFO exiting event processing loop
vince | 2025/05/14 23:40:56 INFO Shutting down
vince | 2025/05/14 23:40:57 [JOB 1] WAL 000106 stopped reading at offset: (vince-data/ops/000106.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:40:57 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:40:57 INFO loading translation data
vince | 2025/05/14 23:40:57 INFO complete loading translation elapsed=45.914µs keys=0
vince | 2025/05/14 23:40:57 INFO starting event processing loop
vince | 2025/05/14 23:40:57 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:40:57 INFO exiting event processing loop
vince | 2025/05/14 23:40:57 INFO Shutting down
vince | 2025/05/14 23:40:59 [JOB 1] WAL 000111 stopped reading at offset: (vince-data/ops/000111.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:40:59 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:40:59 INFO loading translation data
vince | 2025/05/14 23:40:59 INFO complete loading translation elapsed=41.444µs keys=0
vince | 2025/05/14 23:40:59 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:40:59 INFO starting event processing loop
vince | 2025/05/14 23:40:59 INFO exiting event processing loop
vince | 2025/05/14 23:40:59 INFO Shutting down
vince | 2025/05/14 23:41:03 [JOB 1] WAL 000117 stopped reading at offset: (vince-data/ops/000117.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:41:03 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:41:03 INFO loading translation data
vince | 2025/05/14 23:41:03 INFO complete loading translation elapsed=110.825µs keys=0
vince | 2025/05/14 23:41:03 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:41:03 INFO Shutting down
vince | 2025/05/14 23:41:03 INFO starting event processing loop
vince | 2025/05/14 23:41:03 INFO exiting event processing loop
vince | 2025/05/14 23:41:10 [JOB 1] WAL 000122 stopped reading at offset: (vince-data/ops/000122.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:41:10 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:41:10 INFO loading translation data
vince | 2025/05/14 23:41:10 INFO complete loading translation elapsed=197.595µs keys=0
vince | 2025/05/14 23:41:10 INFO starting server addr="\"localhost:8080\""
vince | 2025/05/14 23:41:10 INFO Shutting down
vince | 2025/05/14 23:41:10 INFO starting event processing loop
vince | 2025/05/14 23:41:10 INFO exiting event processing loop
vince exited with code 0
www@VM-0-15-debian:~/vince$ cat docker-compose.yml
services:
vince:
container_name: vince
build:
context: .
environment:
- VINCE_LISTEN=":8080"
- VINCE_ADMIN_NAME="acme"
- VINCE_ADMIN_PASSWORD="1234"
ports:
- "18886:8080"
volumes:
- ./data:/vince-data
restart: unless-stopped
www@VM-0-15-debian:~/vince$ docker-compose up --build
Creating network "vince_default" with the default driver
Building vince
Sending build context to Docker daemon 53.43MB
Step 1/2 : FROM ghcr.io/vinceanalytics/vince
---> 05d3f072016e
Step 2/2 : CMD ["serve"]
---> Using cache
---> edd0a096e4ae
Successfully built edd0a096e4ae
Successfully tagged vince_vince:latest
Creating vince ... done
Attaching to vince
vince | 2025/05/14 23:42:50 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:42:50 INFO unpacking geo database path=vince-data/city.mmdb
vince | 2025/05/14 23:42:50 INFO unpacked geo database size_in_mb=108
vince | 2025/05/14 23:42:50 INFO loading translation data
vince | 2025/05/14 23:42:50 INFO complete loading translation elapsed=50.848µs keys=0
vince | 2025/05/14 23:42:50 INFO starting event processing loop
vince | 2025/05/14 23:42:50 INFO starting server addr="\":8080\""
vince | 2025/05/14 23:42:50 INFO Shutting down
vince | 2025/05/14 23:42:50 INFO exiting event processing loop
vince | 2025/05/14 23:42:51 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:42:51 INFO loading translation data
vince | 2025/05/14 23:42:51 INFO complete loading translation elapsed=258.033µs keys=0
vince | 2025/05/14 23:42:51 INFO starting server addr="\":8080\""
vince | 2025/05/14 23:42:51 INFO starting event processing loop
vince | 2025/05/14 23:42:51 INFO exiting event processing loop
vince | 2025/05/14 23:42:51 INFO Shutting down
vince exited with code 0
www@VM-0-15-debian:~/vince$
www@VM-0-15-debian:~/vince$ cat docker-compose.yml
services:
vince:
container_name: vince
build:
context: .
environment:
- VINCE_LISTEN="8081"
- VINCE_ADMIN_NAME="acme"
- VINCE_ADMIN_PASSWORD="1234"
ports:
- "18886:8080"
volumes:
- ./data:/vince-data
restart: unless-stopped
www@VM-0-15-debian:~/vince$ sudo rm -rf data
www@VM-0-15-debian:~/vince$ docker-compose up --build
Creating network "vince_default" with the default driver
Building vince
Sending build context to Docker daemon 53.43MB
Step 1/2 : FROM ghcr.io/vinceanalytics/vince
---> 05d3f072016e
Step 2/2 : CMD ["serve"]
---> Using cache
---> edd0a096e4ae
Successfully built edd0a096e4ae
Successfully tagged vince_vince:latest
Creating vince ... done
Attaching to vince
vince | 2025/05/14 23:44:12 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:44:12 INFO unpacking geo database path=vince-data/city.mmdb
vince | 2025/05/14 23:44:12 INFO unpacked geo database size_in_mb=108
vince | 2025/05/14 23:44:12 INFO loading translation data
vince | 2025/05/14 23:44:12 INFO complete loading translation elapsed=191.867µs keys=0
vince | 2025/05/14 23:44:12 INFO starting event processing loop
vince | 2025/05/14 23:44:12 INFO starting server addr="\"8081\""
vince | 2025/05/14 23:44:12 INFO Shutting down
vince | 2025/05/14 23:44:12 INFO exiting event processing loop
vince | 2025/05/14 23:44:13 [JOB 1] WAL 000002 stopped reading at offset: (vince-data/ops/000002.log: 201); replayed 2 keys in 2 batches
vince | 2025/05/14 23:44:13 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:44:13 INFO loading translation data
vince | 2025/05/14 23:44:13 INFO complete loading translation elapsed=263.967µs keys=0
vince | 2025/05/14 23:44:13 INFO starting event processing loop
vince | 2025/05/14 23:44:13 INFO starting server addr="\"8081\""
vince | 2025/05/14 23:44:13 INFO exiting event processing loop
vince | 2025/05/14 23:44:13 INFO Shutting down
vince exited with code 0
vince | 2025/05/14 23:44:14 [JOB 1] WAL 000007 stopped reading at offset: (vince-data/ops/000007.log: 99); replayed 1 keys in 1 batches
vince | 2025/05/14 23:44:14 [JOB 1] WAL 000002 stopped reading at offset: (data/000002.log: 0); replayed 0 keys in 0 batches
vince | 2025/05/14 23:44:14 INFO loading translation data
vince | 2025/05/14 23:44:14 INFO complete loading translation elapsed=44.047µs keys=0
vince | 2025/05/14 23:44:14 INFO starting server addr="\"8081\""
vince | 2025/05/14 23:44:14 INFO Shutting down
vince | 2025/05/14 23:44:14 INFO starting event processing loop
vince | 2025/05/14 23:44:14 INFO exiting event processing loop
vince exited with code 0
Neither, it seems that I can't change the running port in the container, using docker-compose.
@aaro-n try using VINCE_LISTEN="0.0.0.0:8080" and did you do a clean rebuild? If it's an option try docker system prune -a --volumes to remove all containers, volumes, networks and images.