still working on postgres

main
Matthew Huntington 2 years ago
parent 918ca96897
commit b057da914c

@ -1,5 +1,6 @@
FROM mahuntington/student:zsh
FROM mahuntington/student:postgres
WORKDIR /home/student
CMD ["sudo", "pg_ctlcluster", "15", "main", "start"]
CMD ["pg_ctlcluster", "15", "main", "start", "--foreground"]
#RUN ["postgres", "-c", "max_connections=300"]

@ -2,8 +2,14 @@ version: '3'
services:
student:
image: mahuntington/student:zsh
image: mahuntington/student:postgres
command: /bin/sh
stdin_open: true
tty: true
container_name: student
links:
- postgres
postgres:
image: mahuntington/student:postgres
command: ["pg_ctlcluster", "15", "main", "start", "--foreground"]

Loading…
Cancel
Save