-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
111 lines (107 loc) · 2.58 KB
/
docker-compose.yml
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
version: '3.7'
networks:
app-tier:
driver: bridge
services:
migration:
image: wepublishch/migration:master
platform: linux/amd64
environment:
NODE_ENV: production
DATABASE_URL: postgresql:https://postgres@database:5432/wepublish?schema=public
depends_on:
- database
restart: on-failure
networks:
- app-tier
api:
image: wepublishch/api:master
platform: linux/amd64
ports:
- '127.0.0.1:4000:4000'
environment:
CONFIG_FILE_PATH: /config.yaml
DATABASE_URL: postgresql:https://postgres@database:5432/wepublish?schema=public
HOST_URL: http:https://localhost:4000
MEDIA_SERVER_URL: http:https://localhost:4100
MEDIA_SERVER_INTERNAL_URL: http:https://media:4100
MEDIA_SERVER_TOKEN: secret
WEBSITE_URL: http:https://localhost:4200
JWT_SECRET_KEY: ThisIsSuperSecret
env_file: .env
volumes:
- ./apps/api-example/src/default.yaml:/config.yaml
depends_on:
- database
- migration
networks:
- app-tier
editor:
image: wepublishch/editor:master
platform: linux/amd64
ports:
- '127.0.0.1:3000:3000'
environment:
NODE_ENV: production
ADDRESS: 0.0.0.0
API_URL: http:https://localhost:4000
depends_on:
- api
database:
image: bitnami/postgresql:14
platform: linux/amd64
ports:
- '127.0.0.1:5432:5432'
volumes:
- 'database_data:/bitnami/postgresql'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- POSTGRESQL_DATABASE=wepublish
networks:
- app-tier
media:
image: wepublishch/media:master
platform: linux/amd64
ports:
- '127.0.0.1:4100:4100'
environment:
TOKEN: secret
S3_ACCESS_KEY: ${S3_ACCESS_KEY}
S3_SECRET_KEY: ${S3_SECRET_KEY}
S3_ENDPOINT: 'storage'
S3_PORT: '9000'
depends_on:
- storage
networks:
- app-tier
pgadmin:
image: dpage/pgadmin4
platform: linux/amd64
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: '[email protected]'
PGADMIN_DEFAULT_PASSWORD: 'root'
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- '127.0.0.1:8000:80'
depends_on:
- database
networks:
- app-tier
storage:
image: bitnami/minio:latest
ports:
- '9000:9000'
- '9001:9001'
environment:
- MINIO_ROOT_USER=${S3_ACCESS_KEY}
- MINIO_ROOT_PASSWORD=${S3_SECRET_KEY}
- MINIO_DEFAULT_BUCKETS=${S3_BUCKETS}
volumes:
- storage_data:/data
volumes:
database_data:
driver: local
storage_data:
driver: local