We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d128d3d commit 80355c4Copy full SHA for 80355c4
docker-compose.yml
@@ -0,0 +1,36 @@
1
+version: "3.5"
2
+
3
+networks:
4
+ db:
5
6
+services:
7
+ api:
8
+ image: netlify/gocommerce
9
+ build: .
10
+ env_file: .env
11
+ environment:
12
+ PORT: 8080
13
+ GOCOMMERCE_DB_DRIVER: mysql
14
+ GOCOMMERCE_DB_AUTOMIGRATE: 1
15
+ GOCOMMERCE_DB_DATABASE_URL: "gocommerce:gocommerce@tcp(db)/gocommerce"
16
+ GOCOMMERCE_DB_NAMESPACE: dev
17
+ GOCOMMERCE_LOG_LEVEL: debug
18
+ ports:
19
+ - 8080:8080
20
+ networks:
21
+ - db
22
23
24
+ image: mysql:5.7
25
26
+ MYSQL_RANDOM_ROOT_PASSWORD: "yes"
27
+ MYSQL_DATABASE: gocommerce
28
+ MYSQL_USER: gocommerce
29
+ MYSQL_PASSWORD: gocommerce
30
+ volumes:
31
+ - db_data:/var/lib/mysql
32
33
34
35
+volumes:
36
+ db_data:
0 commit comments