Skip to content

Instantly share code, notes, and snippets.

@kurianbenoy
Created February 2, 2019 08:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurianbenoy/ef97c5a1dc82ba9f00166a0624db3436 to your computer and use it in GitHub Desktop.
Save kurianbenoy/ef97c5a1dc82ba9f00166a0624db3436 to your computer and use it in GitHub Desktop.
version: '3'
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "8011:8011"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf
- ./excelplay-client/dist/excelplay/:/usr/share/nginx/html/
- ./static:/var/www/static/
- ./media:/var/www/media/
depends_on:
- auth1
- kryptos
- dalalbull
- dalalbulldaphne
- echo
auth1:
build: ./excelplay-auth/excelplay_auth/.
depends_on:
- redis
- db
command: bash excelplay-auth/docker_entrypoint.sh
volumes:
- .:/excelplay/excelplay_auth
ports:
- "8000:8000"
kryptos:
build: ./excelplay-kryptos/excelplay_kryptos/.
depends_on:
- redis
- db2
command: bash excelplay-kryptos/docker_entrypoint.sh
volumes:
- .:/excelplay/excelplay_kryptos
- 'staticdata:/excelplay/excelplay_kryptos/excelplay-kryptos/excelplay_kryptos/static'
ports:
- "8001:8001"
dalalbull:
build: ./excelplay-dalalbull/excelplay_dalalbull/.
depends_on:
- redis
- db3
command: bash excelplay-dalalbull/docker_entrypoint.sh
volumes:
- .:/excelplay/excelplay_dalalbull
ports:
- "8002:8002"
dalalbulldaphne:
build: ./excelplay-dalalbull/excelplay_dalalbull/.
depends_on:
- dalalbull
command: bash excelplay-dalalbull/rundaphne.sh
volumes:
- .:/excelplay/excelplay_dalalbull
ports:
- "8003:8003"
dalalbullcelery:
build: ./excelplay-dalalbull/excelplay_dalalbull/.
depends_on:
- dalalbull
- dalalbulldaphne
command: bash excelplay-dalalbull/runcelery.sh
volumes:
- .:/excelplay/excelplay_dalalbull
echo:
build: ./excelplay-echo/excelplay_echo/.
depends_on:
- redis
- db4
command: bash excelplay-echo/docker_entrypoint.sh
volumes:
- .:/excelplay/excelplay_echo/
ports:
- "8004:8004"
db:
container_name: 'db'
restart: always
image: postgres:alpine
expose:
- '5432'
volumes:
- 'pgdata:/var/lib/postgresql/data'
db2:
container_name: 'db2'
restart: always
image: postgres:alpine
expose:
- "5433"
ports:
- "5433:5432"
volumes:
- 'pgdata2:/var/lib/postgresql/data'
db3:
container_name: 'db3'
restart: always
image: postgres:alpine
expose:
- "5434"
ports:
- "5434:5432"
volumes:
- 'pgdata3:/var/lib/postgresql/data'
db4:
container_name: 'db4'
restart: always
image: postgres:alpine
expose:
- "5435"
ports:
- "5435:5435"
volumes:
- 'pgdata4:/var/lib/postgresql/data'
redis:
container_name: 'redis'
restart: always
image: redis
command: redis-server
volumes:
- 'redisdata:/data'
volumes:
pgdata2:
pgdata:
pgdata3:
redisdata:
staticdata:
pgdata4:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment