Answer the question
In order to leave comments, you need to log in
Docker and gitlab-ci: a strategy?
There are several microservice applications.
Sample docker-compose.yml for each microservice:
version: "2"
services:
memcached:
image: memcached:latest
container_name: servMemcached
restart: always
ports:
- "11211:11211"
mariadb:
image: mariadb:latest
container_name: servMariadb
restart: always
ports:
- "3306:3306"
volumes:
- ./mariadb/data:/var/lib/mysql
env_file: ./mariadb/env
php-fpm:
build: ./php
container_name: servPhp
restart: always
volumes:
- ./www:/var/www/html
links:
- mariadb
- memcached
depends_on:
- mariadb
- memcached
nginx:
image: nginx:latest
container_name: servNginx
restart: always
ports:
- "8080:80"
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
volumes_from:
- php-fpm
links:
- php-fpm
depends_on:
- php-fpm
composer:
build: ./composer
container_name: servComposer
command: install
volumes:
- ./www:/app
- ~/.ssh:/root/.ssh
depends_on:
- php-fpm
Answer the question
In order to leave comments, you need to log in
Good day, comrade.
Tell me, did you manage to answer the questions posed to you?
As a result, it turned out (if it turned out) to realize the desired?
I have a similar situation , containers in kubernetes on Google Container Engine, there is also a docker registry.
Thanks in advance.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question