Skip to content

Commit d9d86ad

Browse files
committed
add from registry
1 parent 5bf5dba commit d9d86ad

2 files changed

Lines changed: 25 additions & 2 deletions

File tree

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,31 @@ This application uses Traefik to handle the certificates, ensure that the follow
5252

5353
## Deploy
5454

55+
### Pull from Github Repository
56+
57+
This instance uses Docker Compose to deploy the application into the port 3015.
58+
59+
First, you need to make sure you are logged into the Github Docker registry (ghcr.io).
60+
61+
1. Go to your personal Github account, into tokens settings https://github.com/settings/tokens
62+
2. Generate a new token (Classic)
63+
3. Ensure you check the permission "read:packages" and "No expiration".
64+
4. In the server, login into docker, introduce your username and the token generated:
65+
```bash
66+
docker login ghcr.io --username github-username
67+
```
68+
5. You should stay logged permanently, you should not need to repeat this process.
69+
70+
To re-deploy the image this should suffice:
71+
72+
`docker compose up -d`
73+
74+
### Locally building the Docker image
75+
5576
This instance uses Docker Compose to deploy the application with Traefik as a proxy.
5677

78+
> If you want to locally build the docker image, change the line `image: ghcr.io/getxoudala/decidim-getxo:${GIT_REF:-main}` for `image: decidim_${DECIDIM_ENV:-production}` first!
79+
5780
You need to build and tag the image:
5881

5982
1. Ensure you have the ENV value `DECIDIM_ENV=staging` or `DECIDIM_ENV=production`

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ services:
3333
- "traefik.enable=true"
3434
- "traefik.http.routers.traefik.service=api@internal"
3535
app:
36-
container_name: decidim
37-
image: decidim_${DECIDIM_ENV:-production}
36+
container_name: decidim_${DECIDIM_ENV:-production}
37+
image: ghcr.io/getxoudala/decidim-getxo:${GIT_REF:-main}
3838
volumes:
3939
- /home/dockerexec/storage:/app/storage
4040
restart: ${RESTART_POLICY:-always}

0 commit comments

Comments
 (0)