This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
cats-mongo: | |
image: mongo:latest | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: mongo | |
MONGO_INITDB_ROOT_PASSWORD: mongo | |
MONGO_INITDB_DATABASE: cats | |
volumes: | |
- cats_mongodb_data:/data/db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[api] | |
dashboard = true # enables the dashboard | |
insecure = true # enables access to traefik api for some reason needed to access dashboard not intended for production environments | |
[providers.docker] | |
[entryPoints] | |
[entryPoints.web] | |
address = ":80" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
traefik: | |
build: | |
context: ./traefik | |
dockerfile: .docker/Dockerfile | |
ports: | |
- "8080:8080" # expose the admin UI | |
- "80:80" # expose the web entrypoint | |
volumes: | |
# So that Traefik can listen to the Docker events | |
- /var/run/docker.sock:/var/run/docker.sock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[api] | |
dashboard = true # enables the dashboard | |
insecure = true # enables access to traefik api for some reason needed to access dashboard not intended for production environments | |
[providers.docker] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM traefik | |
# exposing port 80 for web communication | |
EXPOSE 80 | |
# exposing port 8080 for dashboard access | |
EXPOSE 8080 | |
# this will let us load the static initial configuration | |
COPY .docker/skel / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:erbium | |
WORKDIR /www | |
ENV RUNTIME dev | |
EXPOSE 3000 | |
# Install app dependencies | |
COPY package.json ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:erbium | |
WORKDIR /www | |
ENV RUNTIME dev | |
EXPOSE 3000 | |
# Install app dependencies | |
COPY package.json ./ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
cats-mongo: | |
image: mongo:latest | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: mongo | |
MONGO_INITDB_ROOT_PASSWORD: mongo | |
MONGO_INITDB_DATABASE: cats | |
volumes: | |
- cats_mongodb_data:/data/db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
export const getDefaultState = ( | |
{ | |
username = '', | |
password = '', | |
shouldRememberUser = false, | |
error = null, | |
} = {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import ListGroup from 'react-bootstrap/lib/ListGroup'; | |
export default class List extends React.Component { | |
static propTypes = { | |
renderListItem: PropTypes.func.isRequired, | |
items: PropTypes.arrayOf(PropTypes.any).isRequired, | |
className: PropTypes.string, | |
} |
NewerOlder