Compare commits
2 Commits
53c76e8294
...
6530aaddd4
Author | SHA1 | Date | |
---|---|---|---|
6530aaddd4 | |||
669d652b87 |
@ -1,6 +1,8 @@
|
||||
# Start with an Alpine base image
|
||||
FROM debian:latest
|
||||
|
||||
RUN apt-get install -y ca-certificates
|
||||
|
||||
# Create a directory for our application
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -1,32 +1,10 @@
|
||||
services:
|
||||
music-to-go:
|
||||
container_name: music-to-go
|
||||
depends_on:
|
||||
- music-to-go-db
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "8007:8007"
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- music-to-go-network
|
||||
|
||||
music-to-go-db:
|
||||
image: postgres
|
||||
container_name: music-to-go-db
|
||||
restart: unless-stopped
|
||||
# set shared memory limit when using docker-compose
|
||||
shm_size: 128mb
|
||||
volumes:
|
||||
- ./db:/docker-entrypoint-initdb.d
|
||||
environment:
|
||||
POSTGRES_USER: root
|
||||
POSTGRES_PASSWORD: root
|
||||
networks:
|
||||
- music-to-go-network
|
||||
|
||||
networks:
|
||||
music-to-go-network:
|
||||
driver: bridge
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user