-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (45 loc) · 1.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
44
45
46
47
services:
tests: &app
build: &app-build
context: .
dockerfile: Dockerfile
target: testing
args:
DEVELOPER_UID: ${UID:-1002}
DEVELOPER_USERNAME: ${USER:-you}
image: icalialabs/lithia-converter-backend${TESTING_IMAGE_TAG:-:testing}
volumes:
- .:/workspaces/lithia-converter-backend
stdin_open: true
tty: true
cap_add:
- SYS_PTRACE
- NET_ADMIN
security_opt:
- seccomp:unconfined
entrypoint: python ./tests/test_config.py
environment: &app-env
# ENV variables for the app
ENV_STATUS: testing
devcontainer:
<<: *app
build:
<<: *app-build
target: development
volumes:
- .:/workspaces/lithia-converter-backend
image: icalialabs/lithia-converter-backend:development
entrypoint: /bin/zsh -c "while sleep 1000; do :; done"
environment:
<<: *app-env
EDITOR: code --wait
deployment:
<<: *app
build:
<<: *app-build
target: production
ports:
- published: ${LITHIA_CONVERTER:-8080}
target: 8080
environment:
<<: *app-env