-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (36 loc) · 1.15 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
33
34
35
36
37
38
39
40
41
42
43
44
# File for running the lab development environment. It assumes the current directory contains
# the lab source.
version: '3'
services:
###############################
# Built from local Dockerfile #
###############################
lab:
# Build the Dockerfile in this directory.
build: .
# Mount this directory as a volume at /app
volumes:
- '.:/app'
# Make all commands relative to our application directory
working_dir: /app
# Set some environment variables to be used in the application
environment:
REDIS_URL: 'redis://redis_db:6379'
WEBLAB_REDIS_URL: 'redis://redis_db:6379'
SOCKETIO_REDIS_URL: 'redis://redis_db:6379'
FLASK_APP: autoapp.py
# The process that runs in the container.
# Remember, a container runs only ONE process.
command: /bin/bash -c "python run_debug.py"
# Make the port available on the host machine
# so that we can navigate there with our web browser.
ports:
- '5000:5000'
# Link this container to other containers to create
# a network interface.
links:
- redis_db
redis_db:
image: redis
ports:
- '6379:6379'