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

updated playbooks, included docker-compose file #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ubuntu:16.04
MAINTAINER "vccw-team"

RUN locale-gen en_US.UTF-8
#RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
Expand All @@ -10,6 +10,8 @@ ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -y && \
apt-get install apt-utils -y && \
apt-get install -y locales && \
locale-gen en_US.UTF-8 && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:ansible/ansible && \
apt-get update && \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TileMill Server on Ubuntu 16.04
Build a container.

```
$ git clone [email protected]:miya0001/docker-tilemill.git
$ git clone [email protected]:jucajuca/docker-tilemill.git
$ bash bin/build-docker.sh
```

Expand Down
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '2.1'

services:
tilemill:
restart: always
image: tilemill
network_mode: bridge
command: /usr/bin/monit -I
volumes:
- home-vol:/home/ubuntu
ports:
- 127.0.0.1:20009:20009
- 20008:20008
environment:

# Superuser setup
# - ADMIN_USER=${ADMIN_USER:-admin}
# - ADMIN_MAIL=${ADMIN_MAIL:[email protected]}
# - ADMIN_PASS=${ADMIN_PASS:-password}
- SITE_URL=${SITE_URL:-HTTP://myurl.com}
# - TIME_ZONE=${TIME_ZONE:-GMT+0}

volumes:
home-vol:
4 changes: 2 additions & 2 deletions provision/playbook.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---

- include: ./playbooks/middleware.yml
- include: ./playbooks/openstreetmap-carto.yml
- import_playbook: ./playbooks/middleware.yml
# - import_playbook: ./playbooks/openstreetmap-carto.yml
52 changes: 28 additions & 24 deletions provision/playbooks/middleware.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,34 @@
tasks:

- name: Install common packages
apt: name={{ item }} state=latest update_cache=yes
with_items:
- autoconf
- curl
- fonts-noto-cjk
- fonts-noto-hinted
- fonts-noto-unhinted
- gdal-bin
- git
- jq
- libmapnik-dev
- libtool
- mapnik-utils
- osm2pgsql
- postgis
- postgresql
- postgresql-9.5-postgis-2.2
- postgresql-contrib
- python-pip
- python-psycopg2
- ruby
- ttf-unifont
- unzip
- monit
apt:
state: present
autoclean: yes
update_cache: yes
name:
- autoconf
- curl
- fonts-noto-cjk
- fonts-noto-hinted
- fonts-noto-unhinted
- gdal-bin
- git
- jq
- libmapnik-dev
- libtool
- mapnik-utils
- osm2pgsql
- postgis
- postgresql
- postgresql-9.5-postgis-2.2
- postgresql-contrib
- python-pip
- python-psycopg2
- python-apt
- ruby
- ttf-unifont
- unzip
- monit

# Node.js
- name: Download Node.js PPM
Expand Down