Added defaults and environments for production

This commit is contained in:
Kris Lamoureux 2019-10-31 20:29:09 -04:00
parent aba56da99a
commit 0ce49da441
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925
4 changed files with 9 additions and 7 deletions

5
.gitignore vendored
View File

@ -1,8 +1,5 @@
.vagrant
/*.yml
/*.yaml
/prod/
/production/
/stage/
/staging/
!moxie.yml
/environments/

2
ansible.cfg Normal file
View File

@ -0,0 +1,2 @@
[defaults]
inventory = ./environments/development

View File

@ -0,0 +1,3 @@
traefik_version: latest
traefik_port: 8000
traefik_admin_port: 8080

View File

@ -6,11 +6,11 @@
- name: Start Traefik container
docker_container:
name: traefik
image: traefik:2.0.2
image: traefik:{{ traefik_version }}
restart_policy: always
ports:
- 8000:80
- 8080:8080
- "{{ traefik_port }}:80"
- "{{ traefik_admin_port }}:8080"
volumes:
- ./traefik.yml:/etc/traefik/traefik.yml
- /var/run/docker.sock:/var/run/docker.sock