-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
88 lines (83 loc) · 1.72 KB
/
Copy pathdocker-compose.yml
File metadata and controls
88 lines (83 loc) · 1.72 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
services:
scanblog:
ports:
- "8000:8000"
build:
context: .
dockerfile: Dockerfile
target: dev
args:
- "UID=${UID:-1000}"
- "GID=${GID:-1000}"
stdin_open: true
tty: true
env_file:
- path: .env
required: true
environment:
PORT: 8000
volumes:
- ./scanblog/media:/opt/app/media
- ./:/opt/app:delegated
depends_on:
postgres:
condition: service_started
memcached:
condition: service_started
networks:
- app-network
postgres:
image: postgres
env_file:
- path: .env
required: true
volumes:
- ./:/opt/app:delegated
- pgdata:/var/lib/postgresql/data
networks:
- app-network
memcached:
ports:
- "11211:11211"
image: memcached
networks:
- app-network
selenium:
profiles:
- selenium
build:
context: .
dockerfile: Dockerfile
target: selenium
args:
- "UID=${UID:-1000}"
- "GID=${UID:-1000}"
stdin_open: true
tty: true
env_file:
- path: .env
required: false
volumes:
- ./scanblog/media:/opt/app/media
- ./:/opt/app:delegated
- ${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}:/tmp/${WAYLAND_DISPLAY}
environment:
- WAYLAND_DISPLAY=${WAYLAND_DISPLAY}
- XDG_RUNTIME_DIR=/tmp
- "UID=${UID:-1000}"
- "GID=${UID:-1000}"
- "HEADLESS=${HEADLESS:-0}"
user: "${UID:-1000}:${GID:-1000}"
security_opt:
- seccomp=unconfined
depends_on:
- postgres
networks:
- app-network
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
pgdata:
networks:
app-network:
driver: bridge