-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (31 loc) · 1.03 KB
/
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
# UPDATE 02/14/2025 - I haven't utilized docker compose to build the images, only through `docker run` for each image.This can be changed in the future.
# This docker compose file is necessary to run both Dockerfiles;
# Run `docker compose build` to trigger the dockerfile build
# Once successful, create the containers using `docker compose up`
# To turn off and remove containers, use `docker compose down`
services:
frontend:
build:
context: . # Root directory
dockerfile: Dockerfile.frontend
args:
platform: amd64
image: guardql-frontend:latest # name of the frontend docker image
ports:
- '8081:80' # frontend port
env_file:
- .env
backend:
build:
context: . # Root directory
dockerfile: Dockerfile.backend
args:
platform: amd64
image: guardql-backend:latest # name of the backend docker image
ports:
- '4000:4000' # apollo server port
environment:
JWT_SECRET: ${JWT_SECRET}
DATABASE_URL: ${DATABASE_URL}
env_file:
- .env