diff options
author | 2022-01-30 10:03:48 +0400 | |
---|---|---|
committer | 2022-01-30 10:03:48 +0400 | |
commit | a67b488fd3c24507d5892fd601d571f3d8b0e866 (patch) | |
tree | 6d94ee0426a1eb1b54311ea7ca64c327f4a15398 /docker-compose.yaml | |
parent | Adds Docker Compose (diff) |
Bump Node in Dockerfile
Bumps the node version in the dockerfile, and cleans up the docker
compose.
Diffstat (limited to 'docker-compose.yaml')
-rw-r--r-- | docker-compose.yaml | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/docker-compose.yaml b/docker-compose.yaml index d66ff9b..1e4c405 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -4,7 +4,7 @@ services: mongo: image: mongo:latest ports: - - 27017:27017 + - "27017:27017" environment: MONGO_INITDB_ROOT_USERNAME: forms-backend MONGO_INITDB_ROOT_PASSWORD: forms-backend @@ -19,8 +19,11 @@ services: backend: image: ghcr.io/python-discord/forms-backend + depends_on: + - mongo + - snekbox ports: - - 8000:8000 + - "8000:8000" environment: - DATABASE_URL=mongodb://forms-backend:forms-backend@mongo:27017 - SNEKBOX_URL=http://snekbox:8060/eval @@ -39,13 +42,10 @@ services: depends_on: - backend volumes: - - ./public:/app/public:ro - - ./src:/app/src:ro - - ./.swcrc:/app/.swcrc:ro - - ./tsconfig.json:/app/tsconfig.json:ro - - ./webpack.config.js:/app/webpack.config.js:ro + - .:/app:ro + - /app/node_modules # Ensure dependencies do not collide with a user's local install ports: - - 3000:3000 + - "3000:3000" environment: - BACKEND_URL=http://localhost:8000/ env_file: |