Skip to content

Commit

Permalink
add profile
Browse files Browse the repository at this point in the history
  • Loading branch information
redfield committed Aug 24, 2023
1 parent 2b3c621 commit 7696bd8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Ignore files that aren't required to be in the build context when building images
/var/log/*
/var/cache/*
/Dockerfile
var/log/*
var/cache/*
Dockerfile
*.Dockerfile
docker-compose.yml
*.docker-compose.yml
mysql
3 changes: 3 additions & 0 deletions nginx.profile.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ COPY . /var/www
# copy nginx configuration
COPY docker/nginx/tekno.conf /etc/nginx/conf.d/tekno.conf

# remove default configuration
RUN rm /etc/nginx/conf.d/default.conf

# # copy ssl certificate
# COPY docker/nginx/ssl/etc/letsencrypt /etc/letsencrypt

Expand Down
29 changes: 22 additions & 7 deletions profile_release.docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
version: "3"

# this docker compose only be use to build an production image
# do not up this docker compose, only build

services:
nginx:
image: asia-southeast1-docker.pkg.dev/uvdesk-demo-393909/docker/nginx/tekno:profile
container_name: tekno-uvdesk-nginx
depends_on:
- uvdesk
- db
restart: unless-stopped
ports:
- 80:80
# - 443:443 #https
environment:
- DISABLE_IPV6=true

db:
image: mysql:latest
volumes:
- ./mysql:/var/lib/mysql
restart: always
environment:
MYSQL_DATABASE: uvdesk
MYSQL_ROOT_PASSWORD: teknoniaga2023
MYSQL_USER: uvdesk
MYSQL_PASSWORD: teknoniaga2023

uvdesk:
image: asia-southeast1-docker.pkg.dev/uvdesk-demo-393909/docker/uvdesk/tekno:profile
depends_on:
- db
tty: true
environment:
DATABASE_URL: mysql://uvdesk:teknoniaga2023@db:3306/uvdesk
APP_ENV: prod
APP_ENV: dev
# MAILER_URL: smtp://56c1c41b5ea1ee:[email protected]:2525
# volumes:
# - ./:/var/www

0 comments on commit 7696bd8

Please sign in to comment.