-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (32 loc) · 867 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (32 loc) · 867 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
# Prod environment test
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
environment:
- PORT=80
- ENVIRONMENT=${ENVIRONMENT}
- POSTGRES_HOST=postgres
- POSTGRES_USER=${POSTGRES_USER:?error}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?error}
- POSTGRES_DB=${POSTGRES_DB:?error}
- POSTGRES_SSL=False
- SECRET_KEY=test
- ACCESS_TOKEN_EXPIRE_MINUTES=120
- ADMIN_AUTH_TOKEN=test
- BLOB_READ_WRITE_TOKEN=test
- BLOB_BASE_URL=https://test.com
db:
image: postgres:17
container_name: postgres
environment:
- POSTGRES_USER=${POSTGRES_USER:?error}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:?error}
- POSTGRES_DB=${POSTGRES_DB:?error}
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: