Commit 6eabefc908050cc5a7d91a367e3d767133166137

Authored by Ricardo Gon├žalves
1 parent ce9da3ed4a
Exists in master

first changes

roles/dbserver/templates/docker-compose.yml
... ... @@ -2,7 +2,7 @@ version: '3'
2 2 services:
3 3 db:
4 4 build:
5   - context: ./mysql_cont/
  5 + context: .
6 6 container_name: mysql_app
7 7 #image: mysqlrg
8 8 volumes:
... ...
roles/proxyserver/templates/docker-compose.yml
1 1 version: '3'
2 2 services:
3   - db:
4   - build:
5   - context: .
6   - container_name: mysql_app
7   - #image: mysqlrg
8   - volumes:
9   - - db_data:/var/lib/mysql
10   - ports:
11   - - "3306:3306"
12   -
13   - app:
14   - build:
15   - context: ./appdjango_cont/
16   - container_name: myapp
17   - #image: app
18   - ports:
19   - - "{{app_port}}:8000"
20   - depends_on:
21   - - db
22   -
23   - nginx:
24   - build:
25   - context: ./nginx_cont/
26   - container_name: myserver
27   - ports:
28   - - "{{webser_port}}:{{webser_port}}"
29   - depends_on:
30   - - app
31   -
32 3 haproxy:
33 4 build:
34 5 context: .
... ... @@ -45,10 +16,4 @@ services:
45 16 # container_name: myjenkins
46 17 # ports:
47 18 # - "8080:8080"
48   - # - "50000:50000"
49   -
50   -
51   -volumes:
52   - db_data:
53   - #jenkins_data:
54   -
  19 + # - "50000:50000"
55 20 \ No newline at end of file
... ...