-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (58 loc) · 2.08 KB
/
Copy pathdocker-compose.yml
File metadata and controls
64 lines (58 loc) · 2.08 KB
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
56
57
58
59
60
61
62
63
64
# As of May 2024, docker-compose is not used to build GLADOS. This can be removed in the future.
# Usage
# Start: docker compose up
# With helpers: docker compose -f docker-compose.yml -f ./.devcontainer/docker-compose.dev.yml up
# Stop: docker compose down
# Destroy: docker compose -f docker-compose.yml -f ./.devcontainer/docker-compose.dev.yml down -v --remove-orphans
version: '3'
name: glados-project
# Make sure you have a .env file in the root of the project, it supplies variables in the ${}
services:
app-backend:
build:
context: ./apps/backend
dockerfile: ./backend.Dockerfile
target: production
container_name: glados-backend
env_file:
- .env
volumes:
- ./apps/backend/ExperimentFiles:/app/ExperimentFiles
- ./apps/backend/logs:/app/logs
ports:
# Exposed to the Host : Port inside the container Container https://docs.docker.com/compose/compose-file/compose-file-v3/#ports
# TODO does this need to be exposed to host?
- ${BACKEND_PORT}:${BACKEND_PORT}
expose:
# Exposed to other containers in the same network https://docs.docker.com/compose/compose-file/compose-file-v3/#expose
- "${BACKEND_PORT}"
app-frontend:
build:
context: ./apps/frontend
dockerfile: ./frontend.Dockerfile
target: runner
container_name: glados-frontend
env_file:
- .env
working_dir: /app
ports:
# Exposed to the Host : Port inside the container Container https://docs.docker.com/compose/compose-file/compose-file-v3/#ports
- ${FRONTEND_WEBSERVER_PORT}:${FRONTEND_WEBSERVER_PORT}
- 80:${FRONTEND_WEBSERVER_PORT}
expose:
# Exposed to other containers in the same network https://docs.docker.com/compose/compose-file/compose-file-v3/#expose
- "${FRONTEND_WEBSERVER_PORT}"
- "80"
app-mongodb:
image: mongo
container_name: glados-mongodb
env_file:
- .env
expose:
- "${MONGODB_PORT}"
volumes:
- ./data/db:/data/db
networks:
default:
driver: bridge
name: glados-bridge