Added defaults and environments for production
This commit is contained in:
parent
aba56da99a
commit
0ce49da441
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,8 +1,5 @@
|
||||
.vagrant
|
||||
/*.yml
|
||||
/*.yaml
|
||||
/prod/
|
||||
/production/
|
||||
/stage/
|
||||
/staging/
|
||||
!moxie.yml
|
||||
/environments/
|
||||
|
2
ansible.cfg
Normal file
2
ansible.cfg
Normal file
@ -0,0 +1,2 @@
|
||||
[defaults]
|
||||
inventory = ./environments/development
|
3
roles/traefik/defaults/main.yml
Normal file
3
roles/traefik/defaults/main.yml
Normal file
@ -0,0 +1,3 @@
|
||||
traefik_version: latest
|
||||
traefik_port: 8000
|
||||
traefik_admin_port: 8080
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user