Use local docker registry to push and pull app images
This commit is contained in:
10
test/fixtures/deploy_with_local_registry.yml
vendored
Normal file
10
test/fixtures/deploy_with_local_registry.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
service: app
|
||||
image: dhh/app
|
||||
servers:
|
||||
web:
|
||||
- '1.1.1.1'
|
||||
- '1.1.1.2'
|
||||
registry:
|
||||
server: localhost:5000
|
||||
builder:
|
||||
arch: amd64
|
||||
45
test/fixtures/deploy_with_local_registry_and_accessories.yml
vendored
Normal file
45
test/fixtures/deploy_with_local_registry_and_accessories.yml
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
service: app
|
||||
image: dhh/app
|
||||
servers:
|
||||
web:
|
||||
- '1.1.1.1'
|
||||
- '1.1.1.2'
|
||||
workers:
|
||||
- '1.1.1.3'
|
||||
- '1.1.1.4'
|
||||
registry:
|
||||
server: localhost:5000
|
||||
builder:
|
||||
arch: amd64
|
||||
|
||||
accessories:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
host: 1.1.1.3
|
||||
port: 3306
|
||||
env:
|
||||
clear:
|
||||
MYSQL_ROOT_HOST: '%'
|
||||
secret:
|
||||
- MYSQL_ROOT_PASSWORD
|
||||
files:
|
||||
- test/fixtures/files/my.cnf:/etc/mysql/my.cnf
|
||||
directories:
|
||||
- data:/var/lib/mysql
|
||||
redis:
|
||||
image: redis:latest
|
||||
roles:
|
||||
- web
|
||||
port: 6379
|
||||
directories:
|
||||
- data:/data
|
||||
busybox:
|
||||
service: custom-box
|
||||
image: busybox:latest
|
||||
host: 1.1.1.3
|
||||
registry:
|
||||
server: other.registry
|
||||
username: other_user
|
||||
password: other_pw
|
||||
|
||||
readiness_delay: 0
|
||||
Reference in New Issue
Block a user