-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.14 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.14 KB
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
version: '2.4'
services:
db:
image: postgres:13
hostname: postgres
command: ["postgres", "-c", "log_statement=all"]
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: user
POSTGRES_DB: woc
ports:
- 5434:5432
restart: always
volumes:
- ../workout_calendar_data/woc_db:/var/lib/postgresql/data
app:
build:
context: backend
dockerfile: Dockerfile
command: python main.py --reload
environment:
DB_URL: postgresql://user:password@db:5432/woc
ASYNC_DB_URL: postgresql+asyncpg://user:password@db:5432/woc
volumes:
- ./backend:/app
# - ./frontend/dist:/frontend/dist
ports:
- "127.0.0.1:8081:8000"
depends_on:
- db
# front:
# build:
# context: frontend
# dockerfile: Dockefile
# volumes:
# - ./frontend:/app
# - ./backend/static:/backend/static
# command: yarn serve --host 0.0.0.0 --port 8080
# ports:
# - "127.0.0.1:8080:8080"
front:
image: nginx
volumes:
- ./frontend/dist:/usr/share/nginx/html
ports:
- "127.0.0.1:8080:80"
# environment:
# - NGINX_PORT=8080