Skip to content

Commit

Permalink
new server ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Sep 7, 2024
1 parent 8a711b2 commit 6ac2077
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 13 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ Ruby on Rails application powering the LocomotiveCMS engine. This is the applica
- Ruby on Rails 7.1
- LocomotiveCMS v4.2

## Server installation

Locally

```
kamal deploy
```

On the server

```
docker network create --driver bridge private
```

Copy the private SSH key to the GH actions (SSH_PRIVATE_KEY)

## Contact

Feel free to contact me at didier at nocoffee dot fr.
Expand Down
29 changes: 16 additions & 13 deletions config/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ image: locomotivecms/staging-app
servers:
web:
hosts:
- 174.138.51.62
- 172.232.44.53
labels:
traefik.http.routers.staging-app.entrypoints: websecure
traefik.http.routers.staging-app.rule: Host(`beta2.locomotive.works`)
Expand All @@ -24,25 +24,28 @@ registry:
- DOCKER_REGISTRY_TOKEN

accessories:
mongodb:
image: mongodb/mongodb-community-server:7.0.12-ubuntu2204
roles:
- web
env:
secret:
- MONGODB_INITDB_ROOT_USERNAME
- MONGODB_INITDB_ROOT_PASSWORD
volumes:
- /var/lib/mongodb:/data/db
options:
network: "private"
# NOTE: Having mongodb requires a DO Droplet with at the very least 2GiB
# mongodb:
# image: mongodb/mongodb-community-server:7.0.12-ubuntu2204
# roles:
# - web
# env:
# secret:
# - MONGODB_INITDB_ROOT_USERNAME
# - MONGODB_INITDB_ROOT_PASSWORD
# volumes:
# - /var/lib/mongodb-config:/data/configdb
# - /var/lib/mongodb:/data/db
# options:
# network: "private"

redis:
image: redis:7.0
roles:
- web
volumes:
- /var/lib/redis:/data
cmd: "redis-server --appendonly no --maxmemory 128mb --maxmemory-policy allkeys-lru"
options:
network: "private"

Expand Down

0 comments on commit 6ac2077

Please sign in to comment.