-
Notifications
You must be signed in to change notification settings - Fork 689
/
docker-compose.yml
43 lines (35 loc) · 1 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
version: "3.4"
x-mount-app-and-user-git-config: &mount-app-and-user-git-config
volumes:
- ./:/app
- ~/.gitconfig:/home/instagrapi/.gitconfig # allow script to commit as user
services:
# "devbox" to enable the developer to have a fully loaded development environment
devbox: &devbox
build:
dockerfile: "./docker/devbox.dockerfile"
context: "."
tty: true
volumes:
- "./:/app"
# "test" enables the developer to run all the tests and linting locally
test:
<<: *devbox
command: "docker/run_tests.sh --format-code"
tests:
<<: *devbox
command: "python -m unittest tests"
lock-requirements:
<<: *devbox
entrypoint: "/bin/bash"
command: "docker/lock_requirements.sh"
# generate and serve the project documentation locally
mkdocs: &mkdocs
<<: *devbox
entrypoint: "mkdocs"
ports:
- "8000:8000"
command: [ "serve", "--dev-addr=0.0.0.0:8000" ]
mike:
<<: [*mkdocs, *mount-app-and-user-git-config]
entrypoint: "mike"