-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
35 lines (35 loc) · 968 Bytes
/
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
# docker compose up --build percona
version: "3"
services:
percona:
container_name: pam-oauth2-percona
build:
context: .
dockerfile: docker/percona.dockerfile
args:
- BUILDER_TAG=${DOCKER_TAG:-v0.1.5}
environment:
- MYSQL_ROOT_PASSWORD=password
env_file:
- .env
command: /docker-entrypoint.sh mysqld
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ]
timeout: 30s
retries: 5
interval: 15s
ports:
- 3306:3306
volumes:
- ./tests/test.py:/opt/test.py
- ./config/libpam_oidc.yaml:/etc/datajoint/libpam_oidc.yaml
depends_on:
builder:
condition: service_completed_successfully
image: datajoint/pam-oauth2-percona:${DOCKER_TAG:-v0.1.5}
builder:
container_name: pam-oauth2-builder
build:
context: .
dockerfile: docker/builder.dockerfile
image: datajoint/pam-oauth2-builder:${DOCKER_TAG:-v0.1.5}