-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.4 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
services:
api:
build: api/
image: kvdomingo/portfolio-api
env_file: api/.env
init: true
volumes:
- ./api:/backend
- tmp:/tmp/gunicorn
depends_on:
- db
ui:
image: node:18-alpine
environment:
- NODE_ENV=development
env_file: ui/.env
working_dir: /web
init: true
command:
- /bin/sh
- "-c"
- "yarn install && yarn dev"
volumes:
- ./ui:/web
proxy:
image: bitnami/nginx:latest
environment:
- NGINX_HTTP_PORT_NUMBER=8000
volumes:
- ./proxy:/opt/bitnami/nginx/conf/server_blocks:ro
- tmp:/tmp/gunicorn
labels:
- "traefik.enable=true"
- "traefik.http.routers.kvdstudio.rule=Host(`kvdstudio.localhost`)"
- "traefik.http.routers.kvdstudio.entrypoints=http"
- "traefik.http.routers.kvdstudio.middlewares=secured@file"
- "traefik.docker.network=gateway"
- "traefik.http.services.kvdstudio.loadbalancer.server.port=8000"
restart: unless-stopped
networks:
- default
- gateway
depends_on:
- api
- ui
db:
image: asia.gcr.io/cloud-sql-connectors/cloud-sql-proxy:2.0.0
volumes:
- ./credentials.json:/config
command:
- "my-projects-306716:asia-east1:schedule-bot"
- "--credentials-file=/config"
- "--address=0.0.0.0"
- "--port=3306"
networks:
gateway:
external: true
volumes:
tmp: { }