You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Create a directory called `SurfTimer-Bot` --- `mkdir SurfTimer-Bot`
39
-
3. In this directory, create a file named `Dockerfile` --- `nano SurfTimer-Bot/Dockerfile`.
40
-
4. In this file, paste the contents of [this file](https://raw.githubusercontent.com/Sarrus1/SurfTimer-Discord-Bot/main/Dockerfile).
41
-
5. In the same directory, create a file named `.env` --- `nano SurfTimer-Bot/.env`
42
-
6. In this file, paste the contents of [this file](https://raw.githubusercontent.com/Sarrus1/SurfTimer-Discord-Bot/main/env_sample.txt).
43
-
7. Edit the environment variables accordingly (follow the URL for a detailed guide).
44
-
8. Run the following command to build the Docker image: `docker build SurfTimer-Bot/ -t surftimer-bot`
45
-
9. Now run the container with the following command: `docker run -d --env-file=SurfTimer-Bot/.env surftimer-bot`
39
+
3. In this directory, create a file named `docker-compose.yml` --- `nano docker-compose.yml`.
40
+
4. In this `docker-compose.yml`, copy/paste the contents of [this file](https://raw.githubusercontent.com/surftimer/SurfTimer-Discord-Bot/main/docker-compose.yml).
41
+
5. In this `docker-compose.yml`, edit the environment variables accordingly (follow the URL for a detailed guide).
42
+
6. Now run the container with `docker compose up -d`.
0 commit comments