Skip to content

Commit

Permalink
Add docker files
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Jan 3, 2024
1 parent ee7da58 commit 09dcf0b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@

/etc/build/*
!/etc/build/.gitignore
docker-compose.override.yml
13 changes: 13 additions & 0 deletions docker-compose.override.sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
app:
profiles: [ "disabled" ]

mysql:
ports:
- 13306:3306

mailhog:
image: mailhog/mailhog
ports:
- "18025:8025"
- "11025:1025"
31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
services:
app:
image: sylius/standard:1.11-traditional-alpine
environment:
APP_ENV: "dev"
DATABASE_URL: "mysql://root:mysql@mysql/sylius_%kernel.environment%?charset=utf8mb4"
# DATABASE_URL: "pgsql://root:postgres@postgres/sylius_%kernel.environment%?charset=utf8" # When using postgres
PHP_DATE_TIMEZONE: "Europe/Warsaw"
volumes:
- ./:/app:delegated
- ./.docker/php/php.ini:/etc/php8/php.ini:delegated
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf:delegated
depends_on:
- mysql
networks:
- sylius

mysql:
image: mysql:8.0
platform: linux/amd64
environment:
MYSQL_ROOT_PASSWORD: mysql
volumes:
- mysql-data:/var/lib/mysql:rw

networks:
sylius:
driver: bridge

volumes:
mysql-data:

0 comments on commit 09dcf0b

Please sign in to comment.