2024-10-07 01:41:11 +00:00
|
|
|
services:
|
2024-10-07 02:50:00 +00:00
|
|
|
music-to-go:
|
2024-10-07 01:41:11 +00:00
|
|
|
container_name: music-to-go
|
2024-10-07 02:59:20 +00:00
|
|
|
depends_on:
|
|
|
|
- music-to-go-db
|
2024-10-07 01:41:11 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
ports:
|
|
|
|
- "8007:8007"
|
|
|
|
restart: unless-stopped
|
2024-10-07 02:59:20 +00:00
|
|
|
networks:
|
|
|
|
- music-to-go-network
|
|
|
|
|
2024-10-07 02:50:00 +00:00
|
|
|
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
|
2024-10-07 02:59:20 +00:00
|
|
|
networks:
|
|
|
|
- music-to-go-network
|
|
|
|
|
|
|
|
networks:
|
|
|
|
music-to-go-network:
|
|
|
|
driver: bridge
|
2024-10-07 02:50:00 +00:00
|
|
|
|