2022-03-02 16:44:11 +00:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
2022-03-03 08:35:13 +00:00
|
|
|
postgres:
|
2022-03-23 22:52:30 +00:00
|
|
|
image: postgres:14.2-alpine
|
2022-03-03 08:35:13 +00:00
|
|
|
container_name: postgres
|
2022-04-09 19:21:45 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_DB=postgres
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
2022-04-08 07:37:26 +00:00
|
|
|
ports:
|
|
|
|
- 5432:5432
|
2022-03-02 16:44:11 +00:00
|
|
|
volumes:
|
2022-03-03 08:35:13 +00:00
|
|
|
- pgdata:/var/lib/postgresql/data
|
2022-03-23 22:52:30 +00:00
|
|
|
healthcheck:
|
2022-03-24 10:32:57 +00:00
|
|
|
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
|
|
|
|
start_period: 15s
|
2022-03-23 22:52:30 +00:00
|
|
|
interval: 30s
|
|
|
|
timeout: 30s
|
|
|
|
retries: 3
|
|
|
|
restart: always
|
2022-03-03 08:35:13 +00:00
|
|
|
|
2022-03-12 14:55:04 +00:00
|
|
|
traefik:
|
2022-03-23 22:52:30 +00:00
|
|
|
image: traefik:rocamadour
|
2022-03-12 14:55:04 +00:00
|
|
|
container_name: traefik
|
|
|
|
command:
|
|
|
|
- --providers.docker=true
|
|
|
|
- --providers.docker.exposedbydefault=false
|
|
|
|
- --entrypoints.web.address=:80
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
2022-03-08 10:50:59 +00:00
|
|
|
server:
|
2022-03-14 08:03:47 +00:00
|
|
|
image: amruthpillai/reactive-resume:server-latest
|
2022-04-09 19:47:41 +00:00
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
# dockerfile: ./server/Dockerfile
|
2022-03-08 10:50:59 +00:00
|
|
|
container_name: server
|
2022-04-09 19:21:45 +00:00
|
|
|
environment:
|
|
|
|
- TZ=UTC
|
|
|
|
- PUBLIC_URL=http://localhost:3000
|
|
|
|
- PUBLIC_SERVER_URL=http://localhost:3000/api
|
|
|
|
- PUBLIC_GOOGLE_CLIENT_ID=
|
|
|
|
- POSTGRES_DB=postgres
|
|
|
|
- POSTGRES_USER=postgres
|
|
|
|
- POSTGRES_PASSWORD=postgres
|
|
|
|
- SECRET_KEY=
|
|
|
|
- POSTGRES_HOST=postgres
|
|
|
|
- POSTGRES_PORT=5432
|
|
|
|
- POSTGRES_SSL_CERT=
|
|
|
|
- JWT_SECRET=
|
|
|
|
- JWT_EXPIRY_TIME=604800
|
|
|
|
- GOOGLE_CLIENT_SECRET=
|
|
|
|
- GOOGLE_API_KEY=
|
|
|
|
- SENDGRID_API_KEY=
|
|
|
|
- SENDGRID_FORGOT_PASSWORD_TEMPLATE_ID=
|
|
|
|
- SENDGRID_FROM_NAME=
|
|
|
|
- SENDGRID_FROM_EMAIL=
|
|
|
|
- STORAGE_BUCKET=
|
|
|
|
- STORAGE_REGION=
|
|
|
|
- STORAGE_ENDPOINT=
|
|
|
|
- STORAGE_URL_PREFIX=
|
|
|
|
- STORAGE_ACCESS_KEY=
|
|
|
|
- STORAGE_SECRET_KEY=
|
2022-03-08 10:50:59 +00:00
|
|
|
depends_on:
|
2022-03-12 14:55:04 +00:00
|
|
|
- traefik
|
2022-03-08 10:50:59 +00:00
|
|
|
- postgres
|
2022-03-12 14:55:04 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
|
|
|
- traefik.http.routers.server.entrypoints=web
|
2022-03-24 10:32:57 +00:00
|
|
|
- traefik.http.routers.server.rule=Host(`localhost`) && PathPrefix(`/api/`)
|
2022-03-12 14:55:04 +00:00
|
|
|
- traefik.http.routers.server.middlewares=server-stripprefix
|
|
|
|
- traefik.http.middlewares.server-stripprefix.stripprefix.prefixes=/api
|
|
|
|
- traefik.http.middlewares.server-stripprefix.stripprefix.forceslash=true
|
2022-03-23 22:52:30 +00:00
|
|
|
restart: always
|
2022-03-07 12:43:34 +00:00
|
|
|
|
2022-03-08 10:50:59 +00:00
|
|
|
client:
|
2022-03-14 08:03:47 +00:00
|
|
|
image: amruthpillai/reactive-resume:client-latest
|
2022-04-09 19:47:41 +00:00
|
|
|
# build:
|
|
|
|
# context: .
|
|
|
|
# dockerfile: ./client/Dockerfile
|
2022-03-08 10:50:59 +00:00
|
|
|
container_name: client
|
2022-04-09 19:21:45 +00:00
|
|
|
environment:
|
|
|
|
- TZ=UTC
|
|
|
|
- PUBLIC_URL=http://localhost:3000
|
|
|
|
- PUBLIC_SERVER_URL=http://localhost:3000/api
|
|
|
|
- PUBLIC_GOOGLE_CLIENT_ID=
|
|
|
|
- PUBLIC_FLAG_DISABLE_SIGNUPS=false
|
2022-03-08 10:50:59 +00:00
|
|
|
depends_on:
|
2022-03-12 14:55:04 +00:00
|
|
|
- traefik
|
2022-03-08 10:50:59 +00:00
|
|
|
- server
|
2022-03-12 14:55:04 +00:00
|
|
|
labels:
|
|
|
|
- traefik.enable=true
|
2022-03-24 10:32:57 +00:00
|
|
|
- traefik.http.routers.client.rule=Host(`localhost`)
|
2022-03-12 14:55:04 +00:00
|
|
|
- traefik.http.routers.client.entrypoints=web
|
2022-03-23 22:52:30 +00:00
|
|
|
restart: always
|
2022-03-07 12:43:34 +00:00
|
|
|
|
2022-03-03 08:35:13 +00:00
|
|
|
volumes:
|
|
|
|
pgdata:
|