AWS EC2 Instance #219
-
Hi there, I've set up Docker on an EC2 instance, it has the files, ports are open in EC2 side, but I'm unable to set up the server. Wondering if I can get some extra help?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 23 replies
-
Can you expand on what you mean by "unable to setup the server"? Does it seem like it launches but you can't connect, hit an error, etc? |
Beta Was this translation helpful? Give feedback.
-
I have this running on an aws ec2. If you are still having problems I can try to help. version: "3"
services:
valheim:
image: mbround18/valheim:latest
restart: unless-stopped
ports:
- 2456:2456/udp
- 2457:2457/udp
- 2458:2458/udp
environment:
- PORT=2456
- NAME="Created With Valheim Docker"
- WORLD="Dedicated"
- PASSWORD="Strong! Password @ Here"
- TZ=America/Chicago
- PUBLIC=1
- AUTO_UPDATE=1
- AUTO_UPDATE_SCHEDULE="0 1 * * *"
- AUTO_BACKUP=1
- AUTO_BACKUP_SCHEDULE="*/15 * * * *"
- AUTO_BACKUP_REMOVE_OLD=1
- AUTO_BACKUP_DAYS_TO_LIVE=7
- AUTO_BACKUP_ON_UPDATE=1
- AUTO_BACKUP_ON_SHUTDOWN=1
- WEBHOOK_URL="discord url change me or omit if you aren't using me"
- UPDATE_ON_STARTUP=1
volumes:
- ./valheim/saves:/home/steam/.config/unity3d/IronGate/Valheim
- ./valheim/server:/home/steam/valheim
- ./valheim/backups:/home/steam/backups I am unable to get the yaml to format correctly here, sorry. It is the same yaml used in the projects readme except I added |
Beta Was this translation helpful? Give feedback.
I have this running on an aws ec2. If you are still having problems I can try to help.
My current setup:
I built an ami using my ami with docker/docker-compose helper: https://github.com/tateexon/ec2_docker_ami_builder
I created a security group with these inbound rules:
Custom UDP, Port Range 2456-2458, 0.0.0.0/0
Custom UDP, Port Range 2456-2458, ::/0
Custom TCP, Port Range 2456-2458, 0.0.0.0/0
Custom TCP, Port Range 2456-2458, ::/0
SSH, Port 22, set to my ip so I could ssh into it, I then removed this after I got the server working
I then created an ec2 instance using the ami from the cloudformation script with a size of t3.medium (found smaller sizes would crash or have weird issues) w…