-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.dev.yml
executable file
·55 lines (52 loc) · 1.42 KB
/
docker-compose.dev.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
version: "3.9"
services:
ocr_api_srv_dev:
image: fast_ocr
build:
context: .
container_name: ocr_api_srv_dev
restart: always
depends_on:
- db_dev
command: bash -c "bash /api-envsubst-log-ini.sh && alembic upgrade head && python main.py"
env_file:
- ./env/.env.ocr_api_srv.dev
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- DATABSE_PORT=${DATABSE_PORT}
volumes:
- ./app:/code:ro
- ${UPLOAD_DIR_HOST}:${UPLOAD_DIR_CONT}:rw
- ${APP_LOG_DIR_HOST}:${APP_LOG_DIR_CONT}:rw
ports:
- ${API_PORT}:${API_PORT}
links:
- "db_dev:db"
db_dev:
image: postgres:latest
container_name: postgresql_db
restart: always
env_file:
- ./env/.env.db.dev
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
proxy_srv_dev:
build:
context: ./proxy
container_name: proxy_srv_dev
env_file:
- ./env/.env.proxy_srv_dev
ports:
- ${NGINX_LESTEN_PORT_HOST}:${NGINX_LESTEN_PORT_CONT}
volumes:
- ${MEDIA_ROOT_REL}:/vol/web/uploads:rw
- ${STATIC_ROOT_REL}:/vol/web/static:ro
links:
- "ocr_api_srv_dev:api.net"
volumes:
pgdata:
external: true