Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronei-kunkel/infra-digitalocean
Infra to run my projects on DigitalOcean droplet
https://github.com/ronei-kunkel/infra-digitalocean
Last synced: about 2 months ago
JSON representation
Infra to run my projects on DigitalOcean droplet
- Host: GitHub
- URL: https://github.com/ronei-kunkel/infra-digitalocean
- Owner: ronei-kunkel
- Created: 2023-10-11T06:06:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-20T15:05:10.000Z (over 1 year ago)
- Last Synced: 2023-10-20T16:23:36.075Z (over 1 year ago)
- Language: Dockerfile
- Homepage: http://143.244.177.128/
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Environments
## Production
### build
`docker build --rm -t nginxphp82 .`
### run
`docker run -d -v /var/log/nginx/:/var/log/nginx/ -v $(pwd):/infra -w /infra -p 80:80 --name nginxphp82-apps nginxphp82`
### any alterations needs made inside of container
`docker exec -it nginxphp82-apps bash`
## Development
### make .env file
`cp .env.example .env`
### build
`docker-compose build`
### run
`docker-compose up -d`
### databases
If you need use any database, you need create them first if not exist