Version 1
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: royal-pop-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: royalpop
|
||||
POSTGRES_USER: royalpop
|
||||
POSTGRES_PASSWORD: royalpop_dev_password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- royal_pop_postgres_data:/var/lib/postgresql/data
|
||||
api:
|
||||
image: goko/royal-pop/api:dev
|
||||
container_name: royal-pop-api
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../Env/.env.local
|
||||
environment:
|
||||
DATABASE_URL: postgres://royalpop:royalpop_dev_password@postgres:5432/royalpop?sslmode=disable
|
||||
ports:
|
||||
- "8081:8081"
|
||||
depends_on:
|
||||
- postgres
|
||||
volumes:
|
||||
- ../Backend:/app
|
||||
store:
|
||||
image: goko/royal-pop/store:dev
|
||||
container_name: royal-pop-store
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../Env/.env.local
|
||||
environment:
|
||||
API_BASE_URL: http://localhost:8081
|
||||
ports:
|
||||
- "4321:4321"
|
||||
volumes:
|
||||
- ../Store:/app
|
||||
- store_node_modules:/app/node_modules
|
||||
volumes:
|
||||
royal_pop_postgres_data:
|
||||
store_node_modules:
|
||||
@@ -0,0 +1,43 @@
|
||||
name: royal-pop-accessory
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: royal-pop-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-royalpop}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-royalpop}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-royalpop_change_me}
|
||||
volumes:
|
||||
- royal_pop_postgres_data:/var/lib/postgresql/data
|
||||
|
||||
api:
|
||||
image: goko/royal-pop/api:local-prod
|
||||
container_name: royal-pop-api
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../Env/.env.production
|
||||
environment:
|
||||
DATABASE_URL: ${DATABASE_URL:-postgres://royalpop:${POSTGRES_PASSWORD:-royalpop_change_me}@postgres:5432/royalpop?sslmode=disable}
|
||||
expose:
|
||||
- "8081"
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
proxy:
|
||||
image: goko/royal-pop/proxy:local-prod
|
||||
container_name: royal-pop-proxy
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
api:
|
||||
condition: service_started
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ../Env/origin.crt:/etc/nginx/certs/origin.crt:ro
|
||||
- ../Env/origin.key:/etc/nginx/certs/origin.key:ro
|
||||
|
||||
volumes:
|
||||
royal_pop_postgres_data:
|
||||
@@ -0,0 +1,40 @@
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: royal-pop-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: royalpop
|
||||
POSTGRES_USER: royalpop
|
||||
POSTGRES_PASSWORD: royalpop_dev_password
|
||||
ports:
|
||||
- "5432:5432"
|
||||
volumes:
|
||||
- royal_pop_postgres_data:/var/lib/postgresql/data
|
||||
|
||||
api:
|
||||
image: registry.mangopig.tech/goko/royal-pop/api/dev:${TAG:-latest}
|
||||
container_name: royal-pop-api
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../Env/.env.local
|
||||
environment:
|
||||
DATABASE_URL: postgres://royalpop:royalpop_dev_password@postgres:5432/royalpop?sslmode=disable
|
||||
ports:
|
||||
- "8081:8081"
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
store:
|
||||
image: registry.mangopig.tech/goko/royal-pop/store/dev:${TAG:-latest}
|
||||
container_name: royal-pop-store
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../Env/.env.local
|
||||
environment:
|
||||
API_BASE_URL: http://localhost:8081
|
||||
ports:
|
||||
- "4321:4321"
|
||||
|
||||
volumes:
|
||||
royal_pop_postgres_data:
|
||||
@@ -0,0 +1,42 @@
|
||||
name: royal-pop-accessory
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:16-alpine
|
||||
container_name: royal-pop-postgres
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB:-royalpop}
|
||||
POSTGRES_USER: ${POSTGRES_USER:-royalpop}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-royalpop_change_me}
|
||||
volumes:
|
||||
- royal_pop_postgres_data:/var/lib/postgresql/data
|
||||
|
||||
api:
|
||||
image: registry.mangopig.tech/goko/royal-pop/api/prod:${TAG:-latest}
|
||||
container_name: royal-pop-api
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- ../Env/.env.production
|
||||
environment:
|
||||
DATABASE_URL: ${DATABASE_URL:-postgres://royalpop:${POSTGRES_PASSWORD:-royalpop_change_me}@postgres:5432/royalpop?sslmode=disable}
|
||||
expose:
|
||||
- "8081"
|
||||
depends_on:
|
||||
- postgres
|
||||
|
||||
proxy:
|
||||
image: registry.mangopig.tech/goko/royal-pop/proxy/prod:${TAG:-latest}
|
||||
container_name: royal-pop-proxy
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- api
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
volumes:
|
||||
- ../Env/origin.crt:/etc/nginx/certs/origin.crt:ro
|
||||
- ../Env/origin.key:/etc/nginx/certs/origin.key:ro
|
||||
|
||||
volumes:
|
||||
royal_pop_postgres_data:
|
||||
Reference in New Issue
Block a user