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 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: services:
student: student:
image: mahuntington/student:zsh image: mahuntington/student:postgres
command: /bin/sh command: /bin/sh
stdin_open: true stdin_open: true
tty: true tty: true
container_name: student container_name: student
links:
- postgres
postgres:
image: mahuntington/student:postgres
command: ["pg_ctlcluster", "15", "main", "start", "--foreground"]

Loading…
Cancel
Save