-
Notifications
You must be signed in to change notification settings - Fork 3
/
compose-devdebug.yaml
63 lines (60 loc) · 1.56 KB
/
compose-devdebug.yaml
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
# SPDX-License-Identifier: FSFAP
# Copyright (C) 2023 Edith Coates
# Copyright (C) 2023 Colin B. Macdonald
# If you are working with VSC and wish to start up a
# docker/django debugging server, copy + uncomment this text into
# plom/.vscode/launch.json
# {
# "version": "0.2.0",
# "configurations": [
# {
# "name": "Python: Django",
# "type": "python",
# "request": "attach",
# "pathMappings": [
# {
# "localRoot": "${workspaceFolder}/plom_server",
# "remoteRoot": "/code"
# }
# ],
# "port": 3000,
# "host": "127.0.0.1"
# },
# ]
# }
# can comment out the 3000:3000 below if not using the above
services:
nginx:
build: ./nginx
ports:
- 1300:80
depends_on:
- web
web:
build:
context: .
dockerfile: Containerfile.django
ports:
- 8000:8000
- 3000:3000
expose:
- 8000
command: ./docker_run.sh
# TODO: careful here: there is already a /code inside the container
# for some reason we're mounting our own there instead...
# TODO: those on Fedora, might need a :z at the end
volumes:
- ./plom_server:/code
depends_on:
- postgres
postgres:
image: postgres:13
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
- "POSTGRES_DB=plom_db"
- "POSTGRES_USER=postgres"
- "POSTGRES_PASSWORD=postgres"
volumes:
postgres_data: