-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (65 loc) · 1.41 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '3.8'
name: music-geolocalizer
services:
# backend
backend:
stdin_open: true
tty: true
container_name: backend-dev
build:
context: ./services/backend
dockerfile: Dockerfile_dev
ports:
- 8000:8000
- 5678:5678 # debug
- 6900:6900
volumes:
- type: bind
source: ${MUSIC_LIBRARY_PATH}
target: /music
read_only: true
- ./services/backend:/app
- ./data:/data
env_file:
- .env
- .env.dev
environment:
- GDAL_LIBRARY_PATH=/usr/lib/ogdi/4.1/libgdal.so
- APP_VERSION=0.1
- APP_NAME=web-music-library
depends_on:
- db
- nginx
db:
image: postgis/postgis:16-3.4-alpine
container_name: db
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: music
ports:
- 54333:5432
volumes:
- ${PG_DATA}:/var/lib/postgresql/data
nginx:
image: nginx:stable-alpine3.19-perl
container_name: nginx-dev
ports:
- 8081:8081
volumes:
- type: bind
source: ${MUSIC_LIBRARY_PATH}
target: /music
read_only: true
- ./services/nginx.conf:/etc/nginx/nginx.conf
frontend:
stdin_open: true
tty: true
container_name: frontend-dev
build:
context: ./services/frontend
dockerfile: Dockerfile_dev
ports:
- 3000:3000
profiles:
- full