Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ PostgreSQL-- run Supervisord on Docker in Ubuntu     - Linux, rename the file or folder (mv command and rename command) (Linux)

- The easiest 11g Active DataGuard (ADG) to establish the configuration process (Database)

- Installation and configuration of phpMyAdmin under CentOS (Database)

- Resolve the host via KVM console can not connect clients (Linux)

- Teach you self-built Linux firewall free (Linux)

- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)

- SQL statement to repair SQL Server database (Database)

- Linux - use chroot command (Linux)

- What is the Docker (Linux)

- Why I do not like the Go language style interface (ie Structural Typing) (Programming)

- Linux environment MySQL master-slave synchronization (Database)

- Ordinary users how to use the firewall software (Linux)

- Linux centralized log server rsyslog (Server)

- SSH without password (Linux)

- Killall five options you might not know (Linux)

- OpenSSL to generate public and private key (Linux)

- Linux nice program origin of the name (Linux)

- To resolve Ubuntu 14.04 Unity Desktop Environment Login freeze problem (Linux)

- To install the iNode client on UbuntuKylin 13.10 (Linux)

- VirtualBox virtual machine to install Linux (Linux)

 
         
  PostgreSQL-- run Supervisord on Docker in Ubuntu
     
  Add Date : 2018-11-21      
         
         
         
  I tried to use the supervisor to start nginx and PostgreSQL, the docker container of boot. Use the following Dockerfile and supervisord.conf file, the above application starts, but after a moment to stop. Did you do wrong? stderr or system log file does not contain an error message.
Dockerfile:

1. [Code] [text]

FROM Ubuntu: 14.04
RUN mkdir -p / var / www / var / pgsql / data / var / log / pgsql / var / log / nginx
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY nginx.conf / etc / nginx / sites-enabled / default
RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y install curl wget supervisor postgresql postgresql-contrib libpq-dev llvm gcc g ++ python3-pip python2.7 pytho
n2.7-dev python-pip git nginx nodejs openjdk-7-jdk build-essential
RUN apt-get -y clean all
EXPOSE 80 8000 8080
CMD [ "/ usr / bin / supervisord"]

supervisord.conf:

2. [Code] [text]

[Supervisord]
nodaemon = true
  
[Program: nginx]
command = / bin / bash -c "exec / usr / sbin / nginx -DFOREGROUND"
stdout_logfile = / var / log / nginx /% (program_name) s.log
stderr_logfile = / var / log / nginx /% (program_name) s.log
  
[Program: postgresql]
command = / bin / bash -c "exec /usr/lib/postgresql/9.3/bin/postgres -D / var / pgsql / data"
stdout_logfile = / var / log / pgsql /% (program_name) s.log
stderr_logfile = / var / log / pgsql /% (program_name) s.log

you should:
Use the -n option to run supervisord in the foreground.
Use ENTRYPOINT in Dockerfile instead of CMD.
     
         
         
         
  More:      
 
- Oracle physical storage structure outline (Database)
- JavaScript closures and the scope chain (Programming)
- MySQL error: ERROR 1175: You are using safe update mode solution (Database)
- Configure shared library PCRE (Linux)
- Use XtraBackup be physical standby database MySQL (Database)
- struts2 completely the wrong way to capture 404 (Programming)
- Linux Network Programming - raw socket instance: MAC Address Scanner (Programming)
- Offline (local) Yum source structures (Linux)
- Setting Linux desktop environment, achieve HiDPI display support (Linux)
- VirtualBox virtual machine to install Linux (Linux)
- Oracle 12c detailing the new features (Database)
- Ora-00600 [fast hot Atkins soft _ that _ Oh, of course not _less_ profile] (Database)
- Linux system versions organize local root password cracking method (Linux)
- Ubuntu Series Installation Docker (Linux)
- ORA-01000 Solution (Database)
- How to build Mono 3.4.0 / 3.4.1 on Windows (Linux)
- Raspberry Pi 2 to install the latest version of the FPC and Lazarus 1.5 (Linux)
- Linux based exercises, interview questions (Linux)
- UNIX how to restrict users by IP Telnet (Linux)
- MySQL binlog group to submit XA (two-phase commit) (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.