|
1 | 1 | version: "3.9" |
2 | 2 |
|
3 | 3 | services: |
4 | | - contaxy: |
5 | | - container_name: contaxy |
6 | | - build: |
7 | | - context: .. |
8 | | - dockerfile: ./Dockerfile |
9 | | - ports: |
10 | | - - "127.0.0.1:30010:8080" |
11 | | - volumes: |
12 | | - - /var/run/docker.sock:/var/run/docker.sock |
13 | | - environment: |
14 | | - - POSTGRES_CONNECTION_URI=postgresql://postgres:postgres@contaxy_postgres:5432/postgres |
15 | | - - S3_ENDPOINT=s3:9000 |
16 | | - - S3_ACCESS_KEY=minioadmin |
17 | | - - S3_SECRET_KEY=minioadmin |
18 | | - - BACKEND_CORS_ORIGINS=http://localhost:3000 |
19 | | - depends_on: |
20 | | - - postgres |
21 | | - - s3 |
| 4 | + contaxy: |
| 5 | + build: |
| 6 | + context: .. |
| 7 | + dockerfile: ./Dockerfile |
| 8 | + ports: |
| 9 | + - "127.0.0.1:30010:8080" |
| 10 | + volumes: |
| 11 | + - /var/run/docker.sock:/var/run/docker.sock |
| 12 | + environment: |
| 13 | + - POSTGRES_CONNECTION_URI=postgresql://postgres:postgres@postgres:5432/postgres |
| 14 | + - S3_ENDPOINT=s3:9000 |
| 15 | + - S3_ACCESS_KEY=minioadmin |
| 16 | + - S3_SECRET_KEY=minioadmin |
| 17 | + - BACKEND_CORS_ORIGINS=http://localhost:3000 |
| 18 | + - USER_REGISTRATION_ENABLED=False |
| 19 | + depends_on: |
| 20 | + - postgres |
| 21 | + - s3 |
22 | 22 |
|
23 | | - postgres: |
24 | | - container_name: contaxy_postgres |
25 | | - image: postgres:13.2 |
26 | | - environment: |
27 | | - - POSTGRES_DB=postgres |
28 | | - - POSTGRES_USER=postgres |
29 | | - - POSTGRES_PASSWORD=postgres |
| 23 | + contaxy-setup: |
| 24 | + image: curlimages/curl:7.75.0 |
| 25 | + entrypoint: |
| 26 | + ["sh", "-c", "sleep 5 && curl contaxy:8080/api/seed/default"] |
| 27 | + restart: "no" |
| 28 | + depends_on: |
| 29 | + - contaxy |
30 | 30 |
|
31 | | - pgweb: |
32 | | - container_name: contaxy_pgweb |
33 | | - restart: always |
34 | | - image: sosedoff/pgweb |
35 | | - ports: |
36 | | - - "30012:8081" |
37 | | - environment: |
38 | | - - DATABASE_URL=postgresql://postgres:postgres@contaxy_postgres:5432/postgres?sslmode=disable |
39 | | - depends_on: |
40 | | - - postgres |
| 31 | + postgres: |
| 32 | + image: postgres:13.2 |
| 33 | + environment: |
| 34 | + - POSTGRES_DB=postgres |
| 35 | + - POSTGRES_USER=postgres |
| 36 | + - POSTGRES_PASSWORD=postgres |
| 37 | + ports: |
| 38 | + - "127.0.0.1:30011:5432" |
41 | 39 |
|
42 | | - s3: |
43 | | - container_name: contaxy_s3 |
44 | | - image: minio/minio:RELEASE.2021-03-04T00-53-13Z |
45 | | - command: server /data{1...4} |
46 | | - ports: |
47 | | - - "127.0.0.1:30013:9000" |
| 40 | + pgweb: |
| 41 | + container_name: pgweb |
| 42 | + restart: always |
| 43 | + image: sosedoff/pgweb |
| 44 | + ports: |
| 45 | + - "30012:8081" |
| 46 | + environment: |
| 47 | + - DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable |
| 48 | + depends_on: |
| 49 | + - postgres |
| 50 | + |
| 51 | + s3: |
| 52 | + image: minio/minio:RELEASE.2021-03-04T00-53-13Z |
| 53 | + command: server /data{1...4} |
| 54 | + ports: |
| 55 | + - "127.0.0.1:30013:9000" |
48 | 56 |
|
49 | 57 | # contaxy-extension-workspace: |
50 | | - # image: contaxy-extension-workspace |
51 | | - # restart: always |
52 | | - # ports: |
53 | | - # - "127.0.0.1:30014:8080" |
54 | | - # environment: |
55 | | - # - CONTAXY_ENDPOINT=http://contaxy:8080/api |
56 | | - # - CONTAXY_DEPLOYMENT_NAME=contaxy-extension-workspace |
57 | | - # labels: |
58 | | - # ctxy.namespace: "ctxy" |
59 | | - # ctxy.deploymentType: "extension" |
60 | | - # ctxy.deploymentName: "contaxy-extension-workspace" |
61 | | - # ctxy.projectName: "ctxy-global" |
62 | | - # ctxy.ui_extension_endpoint: "8080/projects/{env.projectId}/workspace" |
63 | | - # ctxy.api_extension_endpoint: "8080/projects/{env.projectId}/workspace" |
64 | | - # depends_on: |
65 | | - # - contaxy |
66 | | - # |
| 58 | + # image: contaxy-extension-workspace |
| 59 | + # restart: always |
| 60 | + # ports: |
| 61 | + # - "127.0.0.1:30014:8080" |
| 62 | + # environment: |
| 63 | + # - CONTAXY_ENDPOINT=http://contaxy:8080/api |
| 64 | + # - CONTAXY_DEPLOYMENT_NAME=contaxy-extension-workspace |
| 65 | + # labels: |
| 66 | + # ctxy.namespace: "ctxy" |
| 67 | + # ctxy.deploymentType: "extension" |
| 68 | + # ctxy.deploymentName: "contaxy-extension-workspace" |
| 69 | + # ctxy.projectName: "ctxy-global" |
| 70 | + # ctxy.ui_extension_endpoint: "8080/projects/{env.projectId}/workspace" |
| 71 | + # ctxy.api_extension_endpoint: "8080/projects/{env.projectId}/workspace" |
| 72 | + # depends_on: |
| 73 | + # - contaxy |
0 commit comments