Repository navigation
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
69 lines (60 loc) · 1.71 KB
/
Copy pathcompose.dev.yaml
File metadata and controls
69 lines (60 loc) · 1.71 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
# Local development on top of compose.yaml:
# docker compose -f compose.yaml -f compose.dev.yaml up
# Builds the images from the sibling checkouts, reloads the app on edit and
# exposes MySQL and Redis on localhost. Bind mounts carry :z for SELinux hosts.
#
# `userns_mode: keep-id` is Podman-specific: it maps the host user to the same
# uid inside the container so APP_UID can write the bind-mounted source and
# storage. Docker maps uids one to one and does not need it.
x-dev-user: &dev-user
userns_mode: keep-id
services:
app:
<<: *dev-user
image: poltergeist:dev
build:
context: ../poltergeist
environment:
APP_DEV_MODE: "true"
volumes:
- ../poltergeist/app:/app/app:z
- ${DATA_PATH:-./volumes}/storage:/data/storage:z
web:
<<: *dev-user
image: rgdps-web:dev
build:
context: ../rgdps-web
environment:
APP_DEV_MODE: "true"
volumes:
- ../rgdps-web/web:/app/web:z
- ${DATA_PATH:-./volumes}/storage:/data/storage:z
- ${DATA_PATH:-./volumes}/assets:/data/assets:z
discord:
<<: *dev-user
image: poltergeist-discord:dev
build:
context: ../poltergeist-discord
volumes:
- ../poltergeist-discord/relay:/app/relay:z
warp:
<<: *dev-user
migrations:
<<: *dev-user
rebuild-leaderboards:
<<: *dev-user
image: poltergeist:dev
build:
context: ../poltergeist
volumes:
- ${DATA_PATH:-./volumes}/storage:/data/storage:z
mysql:
ports:
- "127.0.0.1:${MYSQL_DEV_PORT:-3306}:3306"
volumes:
- ${DATA_PATH:-./volumes}/mysql:/var/lib/mysql:z
redis:
ports:
- "127.0.0.1:${REDIS_DEV_PORT:-6379}:6379"
volumes:
- ${DATA_PATH:-./volumes}/redis:/data:z