-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
108 lines (95 loc) · 2.64 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
# Please refer https://aka.ms/HTTPSinContainer on how to setup an https developer certificate for your ASP .NET Core service.
version: '3.4'
services:
api:
image: coderunapi
build:
context: api
dockerfile: Dockerfile
ports:
- 5125:80
environment:
- POSTGRES_PORT=5432
- POSTGRES_DB=bcc-code-run
- POSTGRES_USER=admin
- POSTGRES_HOST=database
- POSTGRES_PASSWORD=password
- ASPNETCORE_ENVIRONMENT=Development
- REDIS_CONNECTION_STRING=redis:6379
- ENVIRONMENT_NAME=local
volumes:
- ~/.vsdbg:/remote_debugger:rw
depends_on:
- database
- redis
restart: on-failure:5
networks:
- bcc-code-run
redis:
image: redis:6.2-alpine
restart: always
ports:
- 6379:6379
networks:
- bcc-code-run
database:
image: postgis/postgis:13-master
volumes:
- bcc-code-run-psql:/var/lib/postgresql/data
environment:
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- POSTGRES_DB=bcc-code-run
ports:
- "5432:5432"
networks:
- bcc-code-run
pgadmin: #connect using host.docker.internal as host on windows
image: dpage/pgadmin4
restart: always
environment:
- PGADMIN_DEFAULT_USERNAME=admin
- PGADMIN_DEFAULT_PASSWORD=password
ports:
- "5126:80"
networks:
- bcc-code-run
directus:
image: directus/directus:latest
ports:
- 5127:8055
volumes:
# By default, uploads are stored in /directus/uploads
# Always make sure your volumes matches the storage root when using
# local driver
- ./uploads:/directus/uploads
# Make sure to also mount the volume when using SQLite
# - ./database:/directus/database
# If you want to load extensions from the host
# - ./extensions:/directus/extensions
- ./directus/extensions/authentication_hook/dist/:/directus/extensions/hooks/authentication_hook
- ./directus/snapshots/:/directus/snapshots
networks:
- bcc-code-run
depends_on:
- redis
- database
environment:
KEY: '255d861b-5ea1-5996-9aa3-922530ec40b1'
SECRET: '6116487b-cda1-52c2-b5b5-c8022c45e263'
DB_CLIENT: 'pg'
DB_HOST: 'database'
DB_PORT: '5432'
DB_DATABASE: 'bcc-code-run'
DB_USER: 'admin'
DB_PASSWORD: 'password'
CACHE_ENABLED: 'true'
CACHE_STORE: 'redis'
CACHE_REDIS: 'redis://redis:6379'
ADMIN_EMAIL: '[email protected]'
ADMIN_PASSWORD: 'password'
networks:
bcc-code-run:
volumes:
bcc-code-run-psql: