-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml.example
47 lines (44 loc) · 988 Bytes
/
compose.yaml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: "3"
services:
web:
build:
context: .
dockerfile: Dockerfile
restart: on-failure
container_name: "go_api"
ports:
- "8000:8000"
depends_on:
- "database"
networks:
- "mynet"
environment:
API_URL: ":3000"
DB_HOST: "database:3306"
DB_NAME: "dbname"
DB_USER: "dbuser"
DB_PASS: "dbpass"
DB_NAME_TESTING: "dbname_test"
SUPER_ADMIN_USERNAME: "admin"
SUPER_ADMIN_EMAIL: "admin@gmail.com"
SUPER_ADMIN_PASSWORD: "admin"
SUPER_ADMIN_NAME: "Admin"
JWT_SECRET: "myjwtsecret"
links:
- "database"
database:
platform: "linux/x86_64"
image: "mysql:latest"
container_name: "db-mysql"
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: "dbname"
MYSQL_ROOT_PASSWORD: "dbpass"
volumes:
- "./resources/db.sql:/docker-entrypoint-initdb.d/db.sql"
networks:
- "mynet"
networks:
mynet:
driver: "bridge"