Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document service creation #3

Open
Vanuan opened this issue Sep 4, 2016 · 0 comments
Open

Document service creation #3

Vanuan opened this issue Sep 4, 2016 · 0 comments

Comments

@Vanuan
Copy link
Member

Vanuan commented Sep 4, 2016

docker network create \
  --driver overlay \
  --subnet 10.0.9.0/24 \
  --opt encrypted \
  edr

docker service create --replicas 1 --name redis          --network edr --mount type=bind,src=/nfs/edr/redis,dst=/data redis:3.2.3-alpine redis-server --appendonly yes
docker service create --replicas 1 --name edr-db         --network edr -e PGDATA=/var/lib/postgresql/data --mount type=bind,src=/nfs/edr/postgres,dst=/var/lib/postgresql/data kiasaki/alpine-postgres:9.5
docker service create --replicas 1 --name edr-api        --network edr -e NODE_ENV=production -e PORT=80 -e PG=edr-db vanuan/edrpou-api:latest
docker service create --replicas 1 --name edr-lb         --network edr --mount type=bind,src=/nfs/edr/nginx/nginx.conf,dst=/etc/nginx/nginx.conf -p 80:80 nginx:1.10-alpine
docker service create --replicas 1 --name edr-static     --network edr -e GRAPHQL_URL=http://edr-graphql/ vanuan/edrpou-static
docker service create --replicas 1 --name edr-graphql    --network edr -e API_URL=http://edr-api/api vanuan/edrpou-graphql
docker service create --replicas 1 --name edr-api-docs   --network edr vanuan/swagger-ui

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant