-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (33 loc) · 909 Bytes
/
docker-compose.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
services:
backend:
platform: linux/amd64
build:
context: .
dockerfile: Dockerfile
args:
BUILDPLATFORM: ${BUILDPLATFORM:-linux/amd64}
TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64}
image: docker.io/tolgahasandur/flikr-caption-generator:backend
ports:
- "8000:8000"
environment:
- PYTHONPATH=/app
- PYTHONUNBUFFERED=1
restart: unless-stopped
frontend:
platform: linux/amd64
build:
context: ./frontend
dockerfile: Dockerfile
args:
BUILDPLATFORM: ${BUILDPLATFORM:-linux/amd64}
TARGETPLATFORM: ${TARGETPLATFORM:-linux/amd64}
image: docker.io/tolgahasandur/flikr-caption-generator:frontend
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_BACKEND_URL=http://49.13.206.165:8000
restart: unless-stopped
depends_on:
- backend