Skip to content

Instantly share code, notes, and snippets.

@aleics
Last active July 17, 2018 20:38
Show Gist options
  • Save aleics/6d2a6a028e8f7d943f6c9d8eca274a90 to your computer and use it in GitHub Desktop.
Save aleics/6d2a6a028e8f7d943f6c9d8eca274a90 to your computer and use it in GitHub Desktop.
Files used for the creation of a GraphQL endpoint using Rocket
version: '2'
services:
rustql:
image: rustql
restart: always
container_name: rustql
networks:
rustql-network:
ipv4_address: 172.11.0.2
rustql-db:
image: postgres:9.4
restart: always
container_name: rustql-db
networks:
rustql-network:
ipv4_address: 172.11.0.3
volumes:
- /var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
networks:
rustql-network:
driver: bridge
ipam:
config:
- subnet: 172.11.0.0/16
gateway: 172.11.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment