-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1014 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 1014 Bytes
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
version: "3.8"
services:
app:
#image: endpoint where your image is : develop
platform: linux/amd64
build:
dockerfile: ./Docker/app.poetry.dockerfile
context: .
container_name: app-core
env_file:
- .env
restart: always
environment:
LOG_VERBOSITY: ${LOG_VERBOSITY}
depends_on:
- db
volumes:
- ${ECS_LOG_PATH:-./logs/project}:/project/logs
ports:
- "${APP_DOCKER_PORT:-8045}:${APP_ENDPOINT_PORT:-8000}"
db:
platform: linux/amd64
build:
dockerfile: ./Docker/db.dockerfile
context: .
env_file:
- .env
container_name: app-db
#image: postgres:13.2
environment:
POSTGRES_DB: ${APP_DB_NAME}
POSTGRES_USER: ${APP_DB_USER}
POSTGRES_PASSWORD: ${APP_DB_PASSWORD}
ports:
- ${EXTERNAL_DB_PORT:-5492}:5432
volumes:
- ${POSTGRES_DATA_DIR:-/opt/admin-app/data/postgres}:/var/lib/postgresql/data
- ${POSTGRES_BACKUP_DIR:-/opt/admin-app/backup}:/project/backup