-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
46 lines (42 loc) · 955 Bytes
/
compose.yaml
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
name: linktrove
services:
db:
image: postgres:15.6
restart: always
container_name: linktrove-db
environment:
POSTGRES_DB: linktrove
POSTGRES_USER: linktrove_db_user
POSTGRES_PASSWORD: linktrove_db_password
volumes:
- postgres_data:/var/lib/postgresql/data
linktrove:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/code
ports:
- 8002:8000
depends_on:
- db
restart: always
stdin_open: true # for pdb
tty: true # for pdb
container_name: linktrove
environment:
DATABASE_URL: postgres://linktrove_db_user:linktrove_db_password@db:5432/linktrove
dev-env:
build:
context: .
dockerfile_inline: |
FROM node:20
WORKDIR /code
COPY . .
RUN npm install
command: npm run start
tty: true
volumes:
- .:/code
container_name: dev-env
volumes:
postgres_data: