Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Customization
Browse files Browse the repository at this point in the history
  • Loading branch information
beuluis committed Sep 7, 2020
1 parent add41cf commit b597d8e
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 6 deletions.
53 changes: 51 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,59 @@ git clone https://github.com/beuluis/portainer-ce.git
docker-compose up --build
```
3. Navigate to `localhost:9000`
4. Follow setup instructions

### Production
### Customization

The production environment is still being worked on. Under `docker-compose.production.yml` you can find an example for my setup. Feel free to fork it and change the setup for yourself
1. Create a `.env` file
```sh
touch .env
```
2. Overwrite variables as you like (format: `{variable name}={variable value}`)

| Variable | Description | Default value | Required |
| --- | --- | --- | --- |
| `PORT` | Which port is mapped to your host machine | `9000` | false |

## Getting Started Production

To get a copy up and running follow these simple steps.

### Prerequisites

* [Docker](https://docs.docker.com/get-docker/)
* [Docker Compose](https://docs.docker.com/compose/install/)
* [Nginx by me](https://github.com/beuluis/nginx)

### Installation

1. Clone the repo
```sh
git clone https://github.com/beuluis/atlassian-bitbucket.git --branch master
```
2. Create a `.env.prod` file
```sh
touch .env.prod
```
3. Overwrite all variables marked under Customization as required
4. Start docker-compose
```sh
docker-compose --env-file ./.env.prod -f docker-compose.yml -f docker-compose.production.yml up -d
```
5. Navigate to `https://{your-host}`
6. Follow setup instructions

### Customization

1. Create a `.env.prod` file
```sh
touch .env.prod
```
2. Overwrite variables as you like (format: `{variable name}={variable value}`)

| Variable | Description | Default value | Required |
| --- | --- | --- | --- |
| `HOST` | Host which your container should be accessible. E.g. `test.com` | none | true |

<!-- CONTRIBUTING -->
## Contributing
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ services:
FORCE_COLOR: 1

ports:
- 9000:9000
- ${PORT-9000}:9000
7 changes: 4 additions & 3 deletions docker-compose.production.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# To be tested
version: "3.7"
services:
portainer:
container_name: portainerProd

environment:
VIRTUAL_HOST: portainer.luisbeu.de
VIRTUAL_HOST: ${HOST:?Missing environment variable see readme}
VIRTUAL_PORT: 9000
LETSENCRYPT_HOST: portainer.luisbeu.de
LETSENCRYPT_HOST: ${HOST:?Missing environment variable see readme}

networks:
- default
Expand All @@ -17,4 +18,4 @@ services:

networks:
nginxproxynet:
external: true
external: true

0 comments on commit b597d8e

Please sign in to comment.