Реорганизация контейнеров в compose файлах

This commit is contained in:
ErickSkrauch 2016-10-06 00:38:53 +03:00
parent 4bcd0495ed
commit e8a7008e11
3 changed files with 7 additions and 12 deletions

View File

@ -1,11 +1,7 @@
version: '2' version: '2'
services: services:
app:
ports:
- "80:80"
redis: redis:
image: redis:3.0 image: redis:3.0-alpine
volumes: volumes:
- ./data/redis:/data - ./data/redis:/data

View File

@ -1,10 +1,10 @@
version: '2' version: '2'
services: services:
app: app:
extends:
file: docker-compose.base.yml
service: app
build: . build: .
image: registry.gitlab.com/elyby/skinsystem:latest
ports:
- "80:80"
volumes: volumes:
- ./:/go/src/app - ./:/go/src/app
command: ["go", "run", "minecraft-skinsystem.go"] command: ["go", "run", "minecraft-skinsystem.go"]

View File

@ -1,10 +1,9 @@
version: '2' version: '2'
services: services:
app: app:
extends: image: registry.gitlab.com/elyby/skinsystem:latest
file: docker-compose.base.yml ports:
service: app - "80:80"
image: erickskrauch/ely-by-skinsystem:master
links: links:
- redis - redis
- rabbitmq - rabbitmq