-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I try to edit ngix file and then i m using docker-compose-prod.yml but not working #102
Comments
Hi you can use simple version: '3.6'
services:
packeton:
image: packeton/packeton:latest
container_name: packeton
hostname: packeton
ports:
- '127.0.0.1:8089:80'
environment:
TRUSTED_PROXIES: 172.16.0.0/12
DATABASE_URL: "mysql://app:[email protected]:3306/app?serverVersion=8&charset=utf8mb4"
volumes:
- .docker:/data
Then you need to nginx / apache to the root host and proxy request to local 8089 port - where 8089
Example nginx proxy config is
The second why is use version: '3.6'
services:
packeton:
image: packeton/packeton:latest
container_name: packeton
hostname: packeton
ports:
- '127.0.0.1:8089:80'
environment:
VIRTUAL_HOST: satis.example.com
LETSENCRYPT_HOST: satis.example.com
LETSENCRYPT_EMAIL: [email protected]
TRUSTED_PROXIES: 172.16.0.0/12
DATABASE_URL: "mysql://app:[email protected]:3306/app?serverVersion=8&charset=utf8mb4"
volumes:
- .docker:/data
networks:
default:
external:
name: webproxy
Where VIRTUAL_HOST, LETSENCRYPT_HOST, LETSENCRYPT_EMAIL used for |
I think we need to map - ./src/nginx.conf.sample:/var/www/html/nginx.conf:cached something right? |
Hello, I try to below way but not working x-volumes: &default-volume x-restart-policy: &restart_policy x-environment: &default-environment services:
volumes: And nginx-tpl.conf file `daemon off; events { http {
} |
Hi |
ERROR: Version in "./docker-compose-prod.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the In your composer file I added |
Hi, please use the simple single docker container or update docker-compose https://github.com/vtsykun/packeton/blob/master/docker-compose.yml |
Also nginx configuration was loaded from
|
@vtsykun how i can set the custom domain without modifying ngix file? that's why I m doing volume mapping using that I can setup domain name |
Hi, can you install nginx/apache on the root host? more simple to reverse proxy on host machine to setup ssl and custom domain, no need to change docker nginx configuration to setup custom domain. |
Hello,
I try to set custom domain into ngix file so i need to use docker-compose-prod.yml
but when i use docker-compose-prod.yml, it is not working
Version in "./docker-compose-prod.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the
services
key, or omit theversion
key and place your service definitions at the root of the file to use version 1.For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
My docker version : Docker version 20.10.18, build b40c2f6
The text was updated successfully, but these errors were encountered: