-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
65 lines (63 loc) · 2.1 KB
/
docker-compose.yaml
File metadata and controls
65 lines (63 loc) · 2.1 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
65
#
# Start IDE with:
# docker-compose up
# Build images with:
# docker-compose build
# Run shell commands with (presuming ide container started):
# docker-compose exec ide bash
# Run shell commands with (presuming containers failed to start):
# docker run --rm -it py_deps:latest bash
# Stop and teardown all associated containers etc.
# docker-compose down
# Run with
# docker-compose run idea
# Create volumes
# NAS
# docker volume create --driver local --opt type=cifs --opt device=//192.168.2.235/private/projects/financial_static_site --opt o=username=user,password=pw financial_static_site
# Local Disk
# docker volume create --name financial_static_site --opt type=none --opt device=$PWD --opt o=bind
# Persistent settings storage
# docker volume create root_home
# Access Persistent root_home on Windows with:
# \\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes\root_home\_data
# Test volumes
# docker volume rm financial_static_site && docker volume create --driver local --opt type=cifs --opt device=//192.168.2.235/private/projects/financial_static_site --opt o=username=user,password=pw financial_static_site
# docker run --rm -it -v financial_static_site:/financial_static_site/ py_deps bash -c "ls -la /financial_static_site && touch /financial_static_site/test-`date +%s` && ls -la /financial_static_site"
# Rebuilding - keep latest working until it is tested...
# export version=0.0.1
# docker-compose build
# docker-compose push
# unset version # <- this releases latest
# docker-compose build
# docker-compose push
version: "3.8"
services:
py_deps:
image: py_deps:${version:-latest}
build:
context: .
dockerfile: ./Dockerfile
dev:
container_name: fss_dev
image: py_deps:${version:-latest}
stdin_open: true
tty: true
depends_on:
- py_deps
volumes:
- type: volume
source: finance
target: /app
- root_home:/root
ports:
- 4000:4000
- 5000:5000
working_dir:
/app
command:
bash
volumes:
finance:
external: true
root_home:
external: true