forked from goat-community/goat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
113 lines (104 loc) · 2.84 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: "3.7"
networks:
proxy:
volumes:
postgres_data:
services:
traefik:
image: "traefik:1.7.2-alpine"
container_name: "traefik"
ports:
- "80:80" # - Default Port
- "443:443" # - SSL Port
- "31951:31951" # - Mapproxy
- "8000:8000" # - Traefik UI
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./app/config/traefik.toml:/etc/traefik/traefik.toml
- ./app/config/ssl:/ssl
labels:
- "traefik.backend=traefik"
- "traefik.frontend.entryPoints=traefik-ui"
- "traefik.frontend.rule=Host:localhost;"
- "traefik.port=8080"
- "traefik.enable=true"
networks:
proxy:
client:
build:
dockerfile: Dockerfile
context: ./app/client
image: goat-client
volumes:
- /app/node_modules
- ./app/client:/app
container_name: goat-client
labels:
- "traefik.backend=client"
- "traefik.frontend.entryPoints=https,http"
- "traefik.frontend.rule=Host:localhost;"
- "traefik.port=80"
- "traefik.enable=true"
networks:
proxy:
api:
build:
context: ./app/api
ports:
- 3000:3000
env_file:
- ./app/config/docker-env/api.env
volumes:
- ./app/api:/usr/src/app
labels:
- "traefik.backend=api-flask"
- "traefik.frontend.entryPoints=https,http"
- "traefik.frontend.rule=Host:localhost;PathPrefix:/api"
- "traefik.port=3000"
- "traefik.enable=true"
networks:
proxy:
db:
image: goatcommunity/database:12-3.1-2.6.11-custom-2.3.14
container_name: goat-database
restart: on-failure
volumes:
# we are mounting a named volume here instead of a data directory path because of
# a windows 10 premission issue. See https://github.com/docker-library/postgres/issues/435)
# .........
- postgres_data:/var/lib/postgresql
- ./app/database:/opt
- ./app/config:/opt/config
env_file:
- ./app/config/docker-env/db.env
ports:
- "65432:5432"
networks:
proxy:
# print:
# image: camptocamp/mapfish_print:3.16
# volumes:
# - ./app/print/templates:/usr/local/tomcat/webapps/ROOT/print-apps
# container_name: goat-print
# labels:
# - "traefik.backend=print"
# - "traefik.frontend.entryPoints=https,http"
# - "traefik.frontend.rule=Host:localhost;PathPrefix:/print"
# - "traefik.port=8080"
# - "traefik.enable=true"
# networks:
# proxy:
#This container is used for running cron jobs. It is mainly for production purposes.
# cron:
# build:
# dockerfile: ./cron/Dockerfile
# context: ./app
# image: goat-cron
# volumes:
# - ./app/database:/opt
# - ./app/config:/opt/config
# container_name: goat-cron
# env_file:
# - ./app/config/docker-env/db.env
# networks:
# proxy: