-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-debug.yml
47 lines (44 loc) · 1.06 KB
/
docker-compose-debug.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
version: '3.8'
services:
client:
image: node:22.2.0
volumes:
- ./steganography-client:/app
working_dir: /app
environment:
- VITE_SSL_ENABLED=${SSL_ENABLED}
- VITE_API_DOMAIN=${API_DOMAIN}
command: >
bash -c "
npm install && npm run debug
"
ports:
- "${CLIENT_SERVER_PORT}:4321"
database:
image: postgres:16.3
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./pgdata:/var/lib/postgresql/data:z
api:
image: python:3.12.3
# Sleep to wait for postgreSQL to initalize...
command: >
bash -c "
cd app &&
apt-get update &&
apt-get install ffmpeg libsm6 libxext6 -y &&
pip install --no-cache-dir -r requirements.txt &&
sleep ${STARTUP_DELAY} &&
python manage.py runserver 0.0.0.0:8000
"
env_file:
- .env
volumes:
- ./steganography_api:/app
ports:
- "${DJANGO_PORT}:8000"
depends_on:
- database