-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.42 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
services:
web:
container_name: codepoints-web
hostname: codepoints.next
build:
context: .
dockerfile: dev/Dockerfile
ports:
- 80:80
- 443:443
volumes:
- .:/var/www
- ./ops/apache2/local-confs/codepoints.net.conf:/etc/apache2/local-confs/codepoints.net.conf
- ./ops/php/8.5/mods-available/99-codepoints.ini:/usr/local/etc/php/conf.d/99-codepoints.ini
- ./ops/php/8.5/mods-available/99-develop.ini:/usr/local/etc/php/conf.d/99-develop.ini
- ./dev/xdebug_output:/tmp/xdebug_output
- ./dev/popular.json:/var/cache/codepoints/popular.json
depends_on:
- db
- vite
environment:
- CODEPTS_LOG_LEVEL=DEBUG
# https://stackoverflow.com/a/43541681/113195
extra_hosts:
- "host.docker.internal:host-gateway"
db:
container_name: codepoints-db
image: mariadb:10.6
volumes:
- ./dev/db_data:/var/lib/mysql
- ./dev/db_init.d:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=root
- MARIADB_DATABASE=codepts
- MARIADB_USER=codepts
- MARIADB_PASSWORD=codepts
vite:
container_name: codepoints-vite
build:
context: .
dockerfile: dev/vite.Dockerfile
volumes:
- .:/app
codeception:
container_name: codepoints-codeception
image: codeception/codeception
volumes:
- .:/project
profiles:
- test
depends_on:
- web