skip to Main Content

docker-compose in gitlab-ci: expose ports

I like to set up a gitlab repository and a gitlab-ci with docker-compose for integration tests. I finally managed to start some containers with docker-compose. image: docker/compose:1.29.2 variables: DOCKER_HOST: tcp://docker:2375/ DOCKER_HOSTNAME: myhost DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "" #TODO services: - name:…

VIEW QUESTION

How to get htpasswd in Docker Registry to work?

I have been over numerous tutorials and I cannot get htpasswd to work in my private Docker Registry. Here is my folder structure: ├── auth │   └── htpasswd ├── certs │   ├── registry.my.domain.crt │   ├── registry.my.domain.csr │   └── registry.my.domain.key ├──…

VIEW QUESTION

What is the path for application.properties (or similar file) in docker container?

I am dockerizing springboot application(with PostgreSQL). I want to overwrite application.properties in docker container with my own application.properties. My docker-compose.yml file looks like this: version: '2' services: API: image: 'api-docker.jar' ports: - "8080:8080" depends_on: - PostgreSQL environment: - SPRING_DATASOURCE_URL=jdbc:postgresql://PostgreSQL:5432/postgres -…

VIEW QUESTION

Create database on docker startup

I want to create mysql database on docker-compose startup from database.sql script. My database.sql script is on location: src/main/java/com/project_name/resources/db/database.sql. How should I wrote that in my docker-compose.yml file? Right now neither works. volumes: - ./database.sql:/data/application/database.sql or something like: volumes: -…

VIEW QUESTION
Back To Top
Search