-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
85 lines (81 loc) · 1.99 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
version: '3.9'
services:
map:
build:
context: ./dist/apps/fishing-map
dockerfile: ../../../apps/fishing-map/Dockerfile
container_name: map
expose:
- '80'
volumes:
- ./dist/apps/fishing-map/exported:/usr/share/nginx/www
env_file:
- apps/fishing-map/.build.env
environment:
- NEXT_PUBLIC_WORKSPACE_ENV=development
- NEXT_PUBLIC_API_GATEWAY=https://gateway.api.dev.globalfishingwatch.org/
- PORT=80
- BASIC_AUTH=off
networks:
- frontend-network
vessel-viewer:
build:
context: ./dist/apps/vessel-history
dockerfile: ../../../apps/vessel-history/Dockerfile
container_name: vessel-viewer
expose:
- '80'
volumes:
- ./dist/apps/vessel-history/exported:/usr/share/nginx/www
env_file:
- apps/vessel-history/.build.env
environment:
- NEXT_PUBLIC_WORKSPACE_ENV=development
- NEXT_PUBLIC_API_GATEWAY=https://gateway.api.dev.globalfishingwatch.org/
- PORT=80
- BASIC_AUTH=off
networks:
- frontend-network
api-portal:
build:
context: ./dist/apps/api-portal
dockerfile: ../../../apps/api-portal/Dockerfile
container_name: api-portal
expose:
- '80'
ports:
- '3004:80'
volumes:
- ./dist/apps/api-portal/.next:/app/.next
- ./dist/apps/api-portal/exported:/app/exported
- ./dist/apps/api-portal/public:/app/public
env_file:
- apps/api-portal/.build.env
environment:
- PORT=80
networks:
- frontend-network
webserver:
# restart: always
image: nginx:latest
container_name: webserver
ports:
- 80:80
- 443:443
links:
- vessel-viewer
- api-portal
- map
- data-explorer
depends_on:
- api-portal
- vessel-viewer
- map
- data-explorer
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
- ./config/ssl:/etc/nginx/ssl
networks:
- frontend-network
networks:
frontend-network: