-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.anon.yml
64 lines (60 loc) · 1.49 KB
/
docker-compose.anon.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# For running with anonymous data, for e2e tests in local or github actions
services:
frontend:
container_name: nowdb-frontend-anon
build:
context: ./frontend
dockerfile: dev.Dockerfile
volumes:
- ./frontend/src:/usr/src/app/src
ports:
- 127.0.0.1:5173:5173
env_file: .anon.env
backend:
container_name: nowdb-backend-anon
depends_on:
db-anon:
condition: service_healthy
env_file: .anon.env
ports:
- 127.0.0.1:4000:4000
build:
context: .
dockerfile: ./backend/dev.Dockerfile
volumes:
- ./backend/src:/usr/src/app/backend/src
- ./frontend/src/:/usr/src/app/frontend/src/
- ./test_data:/usr/src/app/test_data
healthcheck:
test: curl -f http://localhost:4000/test/ping || exit 1
start_period: 10s
interval: 30s
retries: 3
timeout: 15s
db-anon:
container_name: nowdb-db-anon
image: mariadb:11.4.3
env_file: .anon.env
volumes:
- ./test_data/:/docker-entrypoint-initdb.d
- nowdb-db-anon:/var/lib/mysql/data
ports:
- 127.0.0.1:3306:3306
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
phpmyadmin:
restart: always
image: phpmyadmin:5.2.1
environment:
PMA_ARBITRARY: 1
PMA_HOST: db-anon
PMA_PORT: 3306
ports:
- "8080:80"
- "9090:443"
volumes:
nowdb-db-anon: